| | |
| | | listener(contentView); |
| | | app = new UpdateApp(getActivity(), getResources().getString(R.string.update_key)); |
| | | mPermissionsChecker = new PermissionHelper(getActivity(), this); |
| | | // startActivity(new Intent(getContext(),ShareBrowserActivity.class).putExtra("url","http://vip.tejia.yeshitv.com/index.html")); |
| | | } |
| | | |
| | | private void init(View contentView) { |
| | |
| | | ll_top = contentView.findViewById(R.id.ll_top); |
| | | view_mine_end_bg = contentView.findViewById(R.id.view_mine_end_bg); |
| | | |
| | | ll_top.setBackground(HomeUIUtil.getHomeTopBg("#FF227B", "#FF2A3E")); |
| | | view_mine_end_bg.setBackground(HomeUIUtil.getHomeTopBg("#FF227B", "#FF2A3E")); |
| | | ll_top.setBackground(HomeUIUtil.getHomeTopBg(getContext())); |
| | | view_mine_end_bg.setBackground(HomeUIUtil.getHomeTopBg(getContext())); |
| | | |
| | | |
| | | tv_user_numlayout = contentView.findViewById(R.id.tv_user_numlayout); |
| | |
| | | |
| | | @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(); |