游戏详情整理、Config.isShow()修改
This commit is contained in:
@ -136,7 +136,7 @@ public class SettingActivity extends BaseActivity implements OnClickListener {
|
||||
sp = getSharedPreferences(Config.PREFERENCE, Activity.MODE_PRIVATE);
|
||||
|
||||
// 未打开下载按钮,显示修复下载按钮
|
||||
if (!sp.getBoolean("isShow", false) || !Config.getInstance().isShow()) {
|
||||
if (!sp.getBoolean("isShow", false)) {
|
||||
findViewById(R.id.setting_cv_fix_download).setVisibility(View.VISIBLE);
|
||||
findViewById(R.id.setting_cv_fix_download).setOnClickListener(this);
|
||||
}
|
||||
@ -211,7 +211,6 @@ public class SettingActivity extends BaseActivity implements OnClickListener {
|
||||
break;
|
||||
case R.id.setting_cv_fix_download:
|
||||
sp.edit().putBoolean("isShow", true).apply();
|
||||
Config.getInstance().setShow(true);
|
||||
toast("修复成功,快去首页看看吧");
|
||||
EventBus.getDefault().post(new EBRefresh());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user