diff --git a/app/src/main/java/com/gh/gamecenter/SettingActivity.java b/app/src/main/java/com/gh/gamecenter/SettingActivity.java index a08382a997..b155c522e8 100644 --- a/app/src/main/java/com/gh/gamecenter/SettingActivity.java +++ b/app/src/main/java/com/gh/gamecenter/SettingActivity.java @@ -221,7 +221,10 @@ public class SettingActivity extends BaseActivity implements OnClickListener { finish(); break; case R.id.setting_cv_fix_download: - sp.edit().putBoolean("isShow", true).apply(); + Editor editor = sp.edit(); + editor.putBoolean("isShow", true); + editor.putBoolean("isCheckShow", false); + editor.apply(); toast("修复成功,快去首页看看吧"); EventBus.getDefault().post(new EBReuse("Refresh")); break; diff --git a/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java b/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java index 6b05422697..b540a443d1 100644 --- a/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java +++ b/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java @@ -220,7 +220,9 @@ public class SplashScreenActivity extends BaseActivity { } // 获取下载按钮状态、开启or关闭 - getDownloadStatus(); + if (sp.getBoolean("isCheckShow", true)) { + getDownloadStatus(); + } getUISetting(); @@ -330,7 +332,10 @@ public class SplashScreenActivity extends BaseActivity { try { String status = response.getString("status"); if ("on".equals(status)) { - sp.edit().putBoolean("isShow", true).apply(); + Editor editor = sp.edit(); + editor.putBoolean("isShow", true); + editor.putBoolean("isCheckShow", false); + editor.apply(); } else { sp.edit().putBoolean("isShow", false).apply(); }