Commit ddfe0ee95656397a9e285d2267972a49258fc248
Exists in
yxb_dev
and in
1 other branch
Merge branch 'yxb_dev' of http://git.shunzhi.net/taohd/parentwork into developer
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/ui/fragment/MineFragment.java
... | ... | @@ -104,7 +104,7 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract |
104 | 104 | String useName = AppConfig.getAppConfig(getContext()).get(AppConfig.USER_NAME); |
105 | 105 | if (!TextUtils.isEmpty(useName)) AppConfig.ISLOGIN = true; |
106 | 106 | else AppConfig.ISLOGIN = false; |
107 | - if (AppConfig.getAppConfig(getContext()).get(AppConfig.ISBINDING).equals("1")) { | |
107 | + if ("1".equals(AppConfig.getAppConfig(getContext()).get(AppConfig.ISBINDING))) { | |
108 | 108 | binding_state.setText(""); |
109 | 109 | } else { |
110 | 110 | binding_state.setText("未绑定"); |
... | ... | @@ -224,6 +224,8 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract |
224 | 224 | AppConfig.getAppConfig(AppContext.getInstance()).set(AppConfig.USER_IMAGE, ""); |
225 | 225 | AppConfig.getAppConfig(AppContext.getInstance()).set(AppConfig.USER_NAME, ""); |
226 | 226 | AppConfig.getAppConfig(AppContext.getInstance()).set(AppConfig.LOGIN_NAME, ""); |
227 | + AppConfig.getAppConfig(AppContext.getInstance()).set(AppConfig.CURRCHILDJSONSTR, ""); | |
228 | + AppConfig.getAppConfig(AppContext.getInstance()).set(AppConfig.ISBINDING, "0"); | |
227 | 229 | AppConfig.ISLOGIN = false; |
228 | 230 | setPersonInfo(); |
229 | 231 | MessageManager.getInstance().logout(); | ... | ... |
app/src/main/java/com/shunzhi/parent/ui/fragment/ReportFragment.java
... | ... | @@ -110,7 +110,7 @@ public class ReportFragment extends BaseMVPCompatFragment<MyChildContract.MyChil |
110 | 110 | if (null != chengZhangFragment2) chengZhangFragment2.showShaixuan(handler); |
111 | 111 | break; |
112 | 112 | case R.id.tvName: |
113 | - if(childlist!=null&&childlist.size()>0) | |
113 | + if (childlist != null && childlist.size() > 0) | |
114 | 114 | showChildName(); |
115 | 115 | break; |
116 | 116 | } |
... | ... | @@ -127,9 +127,10 @@ public class ReportFragment extends BaseMVPCompatFragment<MyChildContract.MyChil |
127 | 127 | private PopupMenu childMenu = null; |
128 | 128 | |
129 | 129 | private void createSchoolMenu() { |
130 | - if (childMenu != null) return; | |
131 | - childMenu = new PopupMenu(getActivity(), tvName); | |
130 | + if (childMenu == null) | |
131 | + childMenu = new PopupMenu(getActivity(), tvName); | |
132 | 132 | Menu menu = childMenu.getMenu(); |
133 | + menu.clear(); | |
133 | 134 | if (childlist != null && childlist.size() > 0) { |
134 | 135 | for (int i = 0; i < childlist.size(); i++) { |
135 | 136 | final int finalI = i; | ... | ... |