登录增加进度弹窗,统一toast
This commit is contained in:
@ -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, "微博登录需要客户端支持,请先安装微博");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user