修改后台或用户打开下载后不会再回到关闭下载的状态
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user