|
@@ -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
|
|
|
@@ -361,7 +354,17 @@ public class NewMineFragment extends PresenterFragment<StateContract.Presenter>
|
361
|
354
|
@Override
|
362
|
355
|
public void onResume() {
|
363
|
356
|
super.onResume();
|
364
|
|
-
|
|
357
|
+ if (LoginStatusUtil.isLogin()) {
|
|
358
|
+ //登录先显示缓存的
|
|
359
|
+ String nick = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.NICK, "");
|
|
360
|
+ String icon_url = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.ICONURL, "");
|
|
361
|
+ login.setText(nick);
|
|
362
|
+ Glide.with(getActivity()).load(icon_url).into(loginicon);
|
|
363
|
+ mPresenter.start();
|
|
364
|
+ }else{
|
|
365
|
+ login.setText("注册/登录");
|
|
366
|
+ loginicon.setImageResource(R.mipmap.loginicon);
|
|
367
|
+ }
|
365
|
368
|
|
366
|
369
|
}
|
367
|
370
|
|