| | |
| | | |
| | | @Override |
| | | public void onClick(View v) { |
| | | final SharedPreferences sp = getActivity().getSharedPreferences("user", Context.MODE_PRIVATE); |
| | | boolean isLogin = sp.getBoolean("isLogin", false); |
| | | boolean isLogin = UserUtil.isLogin(getContext()); |
| | | clickState = 0; |
| | | switch (v.getId()) { |
| | | case R.id.vp_close: |
| | |
| | | } |
| | | |
| | | } else if (jsonObject.optInt("code") == 80001) { |
| | | if (tv_nickName.getContext().getSharedPreferences("user", MODE_PRIVATE).getBoolean("isLogin", false)) { |
| | | if (UserUtil.isLogin(getContext())) { |
| | | loginOut(); |
| | | UserUtil.logout(tv_nickName.getContext()); |
| | | noLogin(); |