version:
fix: update:优化app霸屏
This commit is contained in:
@@ -1059,7 +1059,7 @@ public class Utils {
|
||||
* @return
|
||||
*/
|
||||
static synchronized public boolean writeDisableUpdateList(Context context, String[] allowList, String[] disallowList) {
|
||||
String now = Settings.System.getString(context.getContentResolver(), "qch_app_forbid");
|
||||
String now = Settings.System.getString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID);
|
||||
String[] nowList;
|
||||
List<String> allList;
|
||||
if (now == null || "".equalsIgnoreCase(now)) {
|
||||
@@ -1096,10 +1096,10 @@ public class Utils {
|
||||
}
|
||||
list = list.substring(0, list.length() - 1);
|
||||
Log.e("fht", list);
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), "qch_app_forbid", list);
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, list);
|
||||
Log.e("fht", "qch_app_forbid:" + list);
|
||||
} else {
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), "qch_app_forbid", "Invalid");
|
||||
writeSucceed = Settings.System.putString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID, "Invalid");
|
||||
}
|
||||
|
||||
return writeSucceed;
|
||||
|
||||
Reference in New Issue
Block a user