am 4ee07862: am b37ad3d0: Merge "Handle default properly to avoid scary logging." into lmp-dev

* commit '4ee07862cbadeb782fbe598e7f334984070d6c5e':
  Handle default properly to avoid scary logging.
This commit is contained in:
Jason Monk
2014-08-13 17:38:55 +00:00
committed by Android Git Automerger

View File

@@ -296,15 +296,11 @@ public class SecuritySettings extends SettingsPreferenceFragment
root.findPreference(KEY_SIM_LOCK).setEnabled(false); root.findPreference(KEY_SIM_LOCK).setEnabled(false);
} }
} }
try { if (Settings.System.getInt(getContentResolver(),
if (Settings.System.getInt(getContentResolver(), Settings.System.LOCK_TO_APP_ENABLED) Settings.System.LOCK_TO_APP_ENABLED, 0) != 0) {
!= 0) {
root.findPreference(KEY_SCREEN_PINNING).setSummary( root.findPreference(KEY_SCREEN_PINNING).setSummary(
getResources().getString(R.string.switch_on_text)); getResources().getString(R.string.switch_on_text));
} }
} catch (SettingNotFoundException e) {
Log.w(TAG, "No Lock-to-app enabled setting", e);
}
// Show password // Show password
mShowPassword = (SwitchPreference) root.findPreference(KEY_SHOW_PASSWORD); mShowPassword = (SwitchPreference) root.findPreference(KEY_SHOW_PASSWORD);