修复问题详情闪退问题,修改CheckLoginUtils
This commit is contained in:
@ -13,7 +13,7 @@ import com.gh.gamecenter.manager.UserManager;
|
||||
|
||||
public class CheckLoginUtils {
|
||||
|
||||
public static void checkLogin(final Context context, OnLoggenInListener listener) {
|
||||
public static void checkLogin(final Context context, OnLoginListener listener) {
|
||||
// String token = LoginUtils.getToken(context);
|
||||
if (TextUtils.isEmpty(UserManager.getInstance().getToken())) {
|
||||
DialogUtils.showWarningDialog(context, "登录提示", "需要登录才能使用该功能喔!", "取消", "快速登录",
|
||||
@ -25,7 +25,7 @@ public class CheckLoginUtils {
|
||||
}
|
||||
}, null);
|
||||
} else {
|
||||
listener.onLoggedIn();
|
||||
listener.onLogin();
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ public class CheckLoginUtils {
|
||||
return !TextUtils.isEmpty(UserManager.getInstance().getToken());
|
||||
}
|
||||
|
||||
public interface OnLoggenInListener {
|
||||
void onLoggedIn();
|
||||
public interface OnLoginListener {
|
||||
void onLogin();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user