抽离列表的onclick事件 还未完成(太太太多啦), click startActivityForResult相关已经完成
This commit is contained in:
@ -2,9 +2,9 @@ package com.gh.common.util;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.gh.gamecenter.LoginActivity;
|
||||
import com.gh.gamecenter.entity.UserInfoEntity;
|
||||
|
||||
/**
|
||||
* Created by khy on 28/06/17.
|
||||
@ -13,8 +13,8 @@ import com.gh.gamecenter.entity.UserInfoEntity;
|
||||
public class CheckLoginUtils {
|
||||
|
||||
public static void checkLogin(final Context context, OnLoggenInListener listener) {
|
||||
UserInfoEntity userInfo = LoginUtils.getUserInfo(context);
|
||||
if (userInfo == null) {
|
||||
String token = LoginUtils.getToken(context);
|
||||
if (TextUtils.isEmpty(token)) {
|
||||
DialogUtils.showWarningDialog(context, "登录提示", "需要登录才能使用该功能喔!", "取消", "快速登录",
|
||||
new DialogUtils.ConfirmListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user