summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2014-08-13 17:32:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-12 23:14:49 +0000
commitb37ad3d0e903a602272c8ce6e5c51630b5ca063b (patch)
treebe06622ec728708d91370037dfff22ad294cab8d /src/com/android/settings
parentd8e08e55cd6669f5c576b58d8ed7c79ff27c8fa6 (diff)
parentb08853aad9f3ef2dc3ba1f1c7a513a16220d4d9e (diff)
downloadpackages_apps_Settings-b37ad3d0e903a602272c8ce6e5c51630b5ca063b.zip
packages_apps_Settings-b37ad3d0e903a602272c8ce6e5c51630b5ca063b.tar.gz
packages_apps_Settings-b37ad3d0e903a602272c8ce6e5c51630b5ca063b.tar.bz2
Merge "Handle default properly to avoid scary logging." into lmp-dev
Diffstat (limited to 'src/com/android/settings')
-rw-r--r--src/com/android/settings/SecuritySettings.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java
index 7f51599..1b9f44c 100644
--- a/src/com/android/settings/SecuritySettings.java
+++ b/src/com/android/settings/SecuritySettings.java
@@ -296,14 +296,10 @@ public class SecuritySettings extends SettingsPreferenceFragment
root.findPreference(KEY_SIM_LOCK).setEnabled(false);
}
}
- try {
- if (Settings.System.getInt(getContentResolver(), Settings.System.LOCK_TO_APP_ENABLED)
- != 0) {
- root.findPreference(KEY_SCREEN_PINNING).setSummary(
- getResources().getString(R.string.switch_on_text));
- }
- } catch (SettingNotFoundException e) {
- Log.w(TAG, "No Lock-to-app enabled setting", e);
+ if (Settings.System.getInt(getContentResolver(),
+ Settings.System.LOCK_TO_APP_ENABLED, 0) != 0) {
+ root.findPreference(KEY_SCREEN_PINNING).setSummary(
+ getResources().getString(R.string.switch_on_text));
}
// Show password