登录增加进度弹窗,统一toast

This commit is contained in:
kehaoyuan
2017-10-12 17:57:40 +08:00
parent 930e0b92eb
commit dfe087e702
33 changed files with 116 additions and 107 deletions

View File

@ -122,13 +122,13 @@ public class GetLoginDataUtils {
@Override
public void onError(UiError uiError) {
Toast.makeText(mContext, "登录失败", Toast.LENGTH_SHORT).show();
Utils.toast(mContext, "登录失败");
Utils.log(GetLoginDataUtils.class.getSimpleName(), "QQ 登录失败");
}
@Override
public void onCancel() {
Toast.makeText(mContext, "登录取消", Toast.LENGTH_SHORT).show();
Utils.toast(mContext, "登录取消");
Utils.log(GetLoginDataUtils.class.getSimpleName(), "QQ 登录取消");
}
};
@ -235,12 +235,12 @@ public class GetLoginDataUtils {
@Override
public void cancel() {
Toast.makeText(mContext, "取消授权", Toast.LENGTH_LONG).show();
Utils.toastLong(mContext, "取消授权");
}
@Override
public void onFailure(WbConnectErrorMessage errorMessage) {
Toast.makeText(mContext, "微博登录需要客户端支持,请先安装微博", Toast.LENGTH_LONG).show();
Utils.toastLong(mContext, "微博登录需要客户端支持,请先安装微博");
}
}