fix: 修复覆盖安装时因为没有成功获取设置配置而导致功能被关闭的问题

This commit is contained in:
chenjuntao
2023-06-01 11:16:42 +08:00
parent 9050a04c3a
commit b86e372e5b
4 changed files with 18 additions and 15 deletions

View File

@ -122,17 +122,6 @@ public class Config {
return false;
}
/**
* 是否启用畅玩游戏
*/
public static boolean isVGameEnabled() {
if (getSettings() == null) {
return false;
}
return !"off".equals(getSettings().getGameSmooth());
}
/**
* VPN 开关选项是否开启
*/
@ -229,6 +218,8 @@ public class Config {
if (!TextUtils.isEmpty(json)) {
mSettingsEntity = GsonUtils.fromJson(json, SettingsEntity.class);
}
mSettingsEntity.setGameSmooth("off");
} catch (Exception e) {
e.printStackTrace();
}