增加收藏页面,优化登录流程
This commit is contained in:
@ -10,10 +10,12 @@ import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.RadioGroup;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
@ -21,6 +23,7 @@ import com.gh.base.BaseActivity;
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import com.gh.common.util.EntranceUtils;
|
||||
import com.gh.common.util.LoginUtils;
|
||||
import com.gh.gamecenter.entity.LoginResponseEntity;
|
||||
import com.gh.gamecenter.eventbus.EBReuse;
|
||||
import com.gh.gamecenter.eventbus.EBSkip;
|
||||
import com.kyleduo.switchbutton.SwitchButton;
|
||||
@ -62,6 +65,10 @@ public class SettingActivity extends BaseActivity implements OnClickListener {
|
||||
TextView mSettingCacheTv;
|
||||
@BindView(R.id.setting_tv_size)
|
||||
TextView mSettingSizeTv;
|
||||
@BindView(R.id.setting_logout_tv)
|
||||
TextView mSettingLoginType;
|
||||
@BindView(R.id.setting_logout_rl)
|
||||
RelativeLayout mSettingLoginRl;
|
||||
|
||||
private SharedPreferences sp;
|
||||
|
||||
@ -111,6 +118,17 @@ public class SettingActivity extends BaseActivity implements OnClickListener {
|
||||
checkSizeIndex = 1;
|
||||
}
|
||||
fontTextSize(checkSizeIndex);
|
||||
|
||||
LoginResponseEntity loginToken = LoginUtils.getLoginToken(this);
|
||||
if (loginToken != null) {
|
||||
String loginType = loginToken.getLoginType();
|
||||
if (!TextUtils.isEmpty(loginType)) {
|
||||
mSettingLoginType.setText(loginType);
|
||||
}
|
||||
mSettingLoginRl.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
mSettingLoginRl.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user