| | |
| | | import com.bumptech.glide.Glide; |
| | | import com.nostra13.universalimageloader.core.ImageLoader; |
| | | import com.tejia.lijin.app.ShoppingApplication; |
| | | import com.tejia.lijin.app.ui.invite.ShareBrowserTestActivity; |
| | | import com.wpc.library.util.DataCleanManager; |
| | | import com.wpc.library.util.GetManifestDataUtil; |
| | | import com.wpc.library.util.SystemCommon; |
| | |
| | | cb_no_see_reward_statistics.setChecked(noBonusCount == 1 ? true : false); |
| | | cb_no_see_share_and_selection.setChecked(noShareRecordAndStorage == 1 ? true : false); |
| | | cb_no_see_phone.setChecked(noDisplayPhoneNum == 1 ? true : false); |
| | | |
| | | |
| | | findViewById(R.id.view_test).setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | //连续点击5下进入调试模式 |
| | | if (System.currentTimeMillis() - debugLastClickTime < 500) { |
| | | debugCount++; |
| | | if (debugCount > 5) { |
| | | startActivity(new Intent(getApplicationContext(), ShareBrowserTestActivity.class)); |
| | | } |
| | | } else { |
| | | debugCount = 0; |
| | | } |
| | | debugLastClickTime = System.currentTimeMillis(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //调试模式 |
| | | long debugLastClickTime = 0; |
| | | int debugCount = 0; |
| | | |
| | | @Override |
| | | protected void onResume() { |
| | |
| | | break; |
| | | case R.id.ll_person_info: |
| | | |
| | | if (!LoginAndInviteStatusUtil.acessNext(getApplicationContext(), UserUtil.getUid(getApplicationContext()) , true)) |
| | | if (!LoginAndInviteStatusUtil.acessNext(getApplicationContext(), UserUtil.getUid(getApplicationContext()), true)) |
| | | return; |
| | | |
| | | if (getSharedPreferences("user", MODE_PRIVATE).getBoolean("isLogin", false)) { |
| | |
| | | } |
| | | break; |
| | | case R.id.ll_account_grade: |
| | | if (!LoginAndInviteStatusUtil.acessNext(getApplicationContext(), UserUtil.getUid(getApplicationContext()) , true)) |
| | | if (!LoginAndInviteStatusUtil.acessNext(getApplicationContext(), UserUtil.getUid(getApplicationContext()), true)) |
| | | return; |
| | | startActivity(new Intent(SettingActivity.this, AccountGradeActivity.class)); |
| | | break; |
| | | case R.id.ll_about_us: |
| | | Intent intent2 = new Intent(ll_about_us.getContext(), ShareBrowserActivity.class); |
| | | intent2.putExtra("url", SystemParamsUtil.getParam(getApplicationContext(), "about")); |
| | | intent2.putExtra("title", "关于我们"); |
| | | startActivity(intent2); |
| | | break; |
| | | |