Fix repeating apps on pause/resume
Preference list was getting duplicated on pausing and resuming the activity. Pull the user info out of the preference list and make it a static header so that it stays fixed. Can now remove all entries before re-adding. Disable location by default and disable ability to change Unknown sources toggle. Bug: 8685561 Bug: 8688400 Change-Id: I64ce728d5369e03ddaba562bcd66bb0720a037d2
This commit is contained in:
@@ -34,21 +34,21 @@ public class RestrictionUtils {
|
||||
// UserManager.DISALLOW_CONFIG_WIFI,
|
||||
// UserManager.DISALLOW_CONFIG_BLUETOOTH,
|
||||
UserManager.DISALLOW_SHARE_LOCATION,
|
||||
UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES
|
||||
// UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES
|
||||
};
|
||||
|
||||
public static final int [] sRestrictionTitles = {
|
||||
// R.string.restriction_wifi_config_title,
|
||||
// R.string.restriction_bluetooth_config_title,
|
||||
R.string.restriction_location_enable_title,
|
||||
R.string.install_applications
|
||||
// R.string.install_applications
|
||||
};
|
||||
|
||||
public static final int [] sRestrictionDescriptions = {
|
||||
// R.string.restriction_wifi_config_summary,
|
||||
// R.string.restriction_bluetooth_config_summary,
|
||||
R.string.restriction_location_enable_summary,
|
||||
R.string.install_unknown_applications
|
||||
// R.string.install_unknown_applications
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user