Merge "Disable system alert window permissions on low ram devices"
This commit is contained in:
@@ -38,6 +38,7 @@ public class ShadowUtils {
|
||||
private static boolean sIsDemoUser;
|
||||
private static ComponentName sDeviceOwnerComponentName;
|
||||
private static Map<String, String> sAppNameMap;
|
||||
private static boolean sIsSystemAlertWindowEnabled;
|
||||
|
||||
@Implementation
|
||||
protected static int enforceSameOwner(Context context, int userId) {
|
||||
@@ -113,4 +114,13 @@ public class ShadowUtils {
|
||||
}
|
||||
sAppNameMap.put(packageName, appLabel);
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected static boolean isSystemAlertWindowEnabled(Context context) {
|
||||
return sIsSystemAlertWindowEnabled;
|
||||
}
|
||||
|
||||
public static void setIsSystemAlertWindowEnabled(boolean enabled) {
|
||||
sIsSystemAlertWindowEnabled = enabled;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user