summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfuzz <fuzzzzzzzzzzzzzzzzzz@gmail.com>2013-03-11 12:45:02 +0900
committerfuzz <fuzzzzzzzzzzzzzzzzzz@gmail.com>2013-03-11 12:45:02 +0900
commitf586ff39bb82dc5a1db1f7d86e14fccd26cf2317 (patch)
tree08cf41013e4ada944d57b1dd5fc9d70ce6bf6a13
parent5ff3542635d05a1c63edd5b1ec80db3b874799db (diff)
downloadpackages_apps_settings-f586ff39bb82dc5a1db1f7d86e14fccd26cf2317.zip
packages_apps_settings-f586ff39bb82dc5a1db1f7d86e14fccd26cf2317.tar.gz
packages_apps_settings-f586ff39bb82dc5a1db1f7d86e14fccd26cf2317.tar.bz2
LockscreenPattern: Fix toggle dots/error pattern visibility
This fix the issues dot/error pattern state doesn't save. also cleanup redundant code. Change-Id: Iebaac9679ad9c621d62effd700689485db7c252a
-rw-r--r--src/com/android/settings/SecuritySettings.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java
index 14a4cf4..e124fa2 100644
--- a/src/com/android/settings/SecuritySettings.java
+++ b/src/com/android/settings/SecuritySettings.java
@@ -248,15 +248,6 @@ public class SecuritySettings extends SettingsPreferenceFragment
}
if (isCmSecurity) {
- // visible pattern
- mVisiblePattern = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_PATTERN);
-
- // visible error pattern
- mVisibleErrorPattern = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_ERROR_PATTERN);
-
- // visible dots
- mVisibleDots = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_DOTS);
-
// lock instantly on power key press
mPowerButtonInstantlyLocks = (CheckBoxPreference) root.findPreference(
KEY_POWER_INSTANTLY_LOCKS);
@@ -327,6 +318,12 @@ public class SecuritySettings extends SettingsPreferenceFragment
// visible pattern
mVisiblePattern = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_PATTERN);
+ // visible error pattern
+ mVisibleErrorPattern = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_ERROR_PATTERN);
+
+ // visible dots
+ mVisibleDots = (CheckBoxPreference) root.findPreference(KEY_VISIBLE_DOTS);
+
// lock instantly on power key press
mPowerButtonInstantlyLocks = (CheckBoxPreference) root.findPreference(
KEY_POWER_INSTANTLY_LOCKS);