|
@@ -152,14 +152,7 @@ public class NewMineFragment extends PresenterFragment<StateContract.Presenter>
|
152
|
152
|
@Override
|
153
|
153
|
protected void initWidget(View root) {
|
154
|
154
|
super.initWidget(root);
|
155
|
|
- if (LoginStatusUtil.isLogin()) {
|
156
|
|
- //登录先显示缓存的
|
157
|
|
- String nick = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.NICK, "");
|
158
|
|
- String icon_url = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.ICONURL, "");
|
159
|
|
- login.setText(nick);
|
160
|
|
- Glide.with(getActivity()).load(icon_url).into(loginicon);
|
161
|
|
- mPresenter.start();
|
162
|
|
- }
|
|
155
|
+
|
163
|
156
|
|
164
|
157
|
}
|
165
|
158
|
|
|
@@ -365,7 +358,17 @@ public class NewMineFragment extends PresenterFragment<StateContract.Presenter>
|
365
|
358
|
@Override
|
366
|
359
|
public void onResume() {
|
367
|
360
|
super.onResume();
|
368
|
|
-
|
|
361
|
+ if (LoginStatusUtil.isLogin()) {
|
|
362
|
+ //登录先显示缓存的
|
|
363
|
+ String nick = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.NICK, "");
|
|
364
|
+ String icon_url = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.ICONURL, "");
|
|
365
|
+ login.setText(nick);
|
|
366
|
+ Glide.with(getActivity()).load(icon_url).into(loginicon);
|
|
367
|
+ mPresenter.start();
|
|
368
|
+ }else{
|
|
369
|
+ login.setText("注册/登录");
|
|
370
|
+ loginicon.setImageResource(R.mipmap.loginicon);
|
|
371
|
+ }
|
369
|
372
|
|
370
|
373
|
}
|
371
|
374
|
|