From e5e6a07e243252af35005d1467bdff7675cb10c1 Mon Sep 17 00:00:00 2001 From: huangzhuanghua <401742778@qq.com> Date: Thu, 29 Sep 2016 09:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=BB=98=E8=AE=A4=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/gh/common/constant/Config.java | 2 +- app/src/main/java/com/gh/gamecenter/SettingActivity.java | 2 +- app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/gh/common/constant/Config.java b/app/src/main/java/com/gh/common/constant/Config.java index b5221f23b0..0a7ec917e4 100644 --- a/app/src/main/java/com/gh/common/constant/Config.java +++ b/app/src/main/java/com/gh/common/constant/Config.java @@ -11,7 +11,7 @@ public class Config { public static boolean isShow(Context context) { SharedPreferences sp = context.getSharedPreferences(Config.PREFERENCE, Context.MODE_PRIVATE); - return sp.getBoolean("isShow", false); + return sp.getBoolean("isShow", true); } } diff --git a/app/src/main/java/com/gh/gamecenter/SettingActivity.java b/app/src/main/java/com/gh/gamecenter/SettingActivity.java index 0c540952dc..539941a848 100644 --- a/app/src/main/java/com/gh/gamecenter/SettingActivity.java +++ b/app/src/main/java/com/gh/gamecenter/SettingActivity.java @@ -137,7 +137,7 @@ public class SettingActivity extends BaseActivity implements OnClickListener { sp = getSharedPreferences(Config.PREFERENCE, Activity.MODE_PRIVATE); // 未打开下载按钮,显示修复下载按钮 - if (!sp.getBoolean("isShow", false)) { + if (!sp.getBoolean("isShow", true)) { findViewById(R.id.setting_cv_fix_download).setVisibility(View.VISIBLE); findViewById(R.id.setting_cv_fix_download).setOnClickListener(this); } diff --git a/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java b/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java index 050b25c0be..e8c8380560 100644 --- a/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java +++ b/app/src/main/java/com/gh/gamecenter/SplashScreenActivity.java @@ -235,7 +235,6 @@ public class SplashScreenActivity extends BaseActivity { sp.edit().putInt("actionbar_height", actionBar.getHeight()).apply(); } } - long end = System.currentTimeMillis() - start; if (end < 3000) { handler.postDelayed(new Runnable() {