diff options
author | Amith Yamasani <yamasani@google.com> | 2013-04-23 17:13:46 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-23 17:13:46 +0000 |
commit | 2774bc4413e103e79768ddace8356c997984513e (patch) | |
tree | 4f5f8c572826dfe110f9ec8a1e75bc92ec8cdadb /src/com/android/settings/SecuritySettings.java | |
parent | 73e396f8ffcb89f466c8767ccd9864ec2b1cd203 (diff) | |
parent | 1bad7141b4c602399beaddde49ac295ae1a89afc (diff) | |
download | packages_apps_Settings-2774bc4413e103e79768ddace8356c997984513e.tar.gz packages_apps_Settings-2774bc4413e103e79768ddace8356c997984513e.tar.bz2 packages_apps_Settings-2774bc4413e103e79768ddace8356c997984513e.zip |
Merge "Fix repeating apps on pause/resume" into jb-mr2-dev
Diffstat (limited to 'src/com/android/settings/SecuritySettings.java')
-rw-r--r-- | src/com/android/settings/SecuritySettings.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index e97c73fe4..a64d73156 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -257,10 +257,8 @@ public class SecuritySettings extends SettingsPreferenceFragment KEY_TOGGLE_INSTALL_APPLICATIONS); mToggleAppInstallation.setChecked(isNonMarketAppsAllowed()); - boolean isSideloadingAllowed = - !um.hasUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES); // Side loading of apps. - mToggleAppInstallation.setEnabled(isSideloadingAllowed); + mToggleAppInstallation.setEnabled(mIsPrimary); // Package verification, only visible to primary user and if enabled mToggleVerifyApps = (CheckBoxPreference) findPreference(KEY_TOGGLE_VERIFY_APPLICATIONS); |