Skip to content

Commit 40fa839

Browse files
committed
fixup! add option to scramble PIN layout
1 parent 810d430 commit 40fa839

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

core/java/android/ext/settings/ExtSettings.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ public class ExtSettings {
3838
public static final BoolSetting SCREENSHOT_TIMESTAMP_EXIF = new BoolSetting(
3939
Setting.Scope.PER_USER, Settings.Secure.SCREENSHOT_TIMESTAMP_EXIF, false);
4040

41-
public static final BoolSetting SCRAMBLE_LOCKSCREEN_PIN_LAYOUT = new BoolSetting(
42-
Setting.Scope.PER_USER, Settings.Secure.SCRAMBLE_PIN_LAYOUT, false);
41+
public static final BoolSetting SCRAMBLE_LOCKSCREEN_PIN_LAYOUT_PRIMARY = new BoolSetting(
42+
Setting.Scope.PER_USER, Settings.Secure.SCRAMBLE_PIN_LAYOUT_PRIMARY, false);
43+
public static final BoolSetting SCRAMBLE_LOCKSCREEN_PIN_LAYOUT_SECONDARY = new BoolSetting(
44+
Setting.Scope.PER_USER, Settings.Secure.SCRAMBLE_PIN_LAYOUT_SECONDARY, false);
4345

4446
public static final BoolSetting SCRAMBLE_SIM_PIN_LAYOUT = new BoolSetting(
4547
Setting.Scope.PER_USER, Settings.Secure.SCRAMBLE_SIM_PIN_LAYOUT,
4648
// inherit lockscreen PIN setting by default
47-
SCRAMBLE_LOCKSCREEN_PIN_LAYOUT::get);
49+
SCRAMBLE_LOCKSCREEN_PIN_LAYOUT_PRIMARY::get);
4850

4951
public static final BoolSysProperty ALLOW_GOOGLE_APPS_SPECIAL_ACCESS_TO_ACCELERATORS = new BoolSysProperty(
5052
// also accessed in native code, in frameworks/native/cmds/servicemanager/Access.cpp

core/java/android/provider/Settings.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6862,7 +6862,11 @@ public static final class Secure extends NameValueTable {
68626862
public static final String SCREENSHOT_TIMESTAMP_EXIF = "screenshot_timestamp_exif";
68636863

68646864
/** @hide */
6865-
public static final String SCRAMBLE_PIN_LAYOUT = "lockscreen_scramble_pin_layout";
6865+
public static final String SCRAMBLE_PIN_LAYOUT_PRIMARY =
6866+
"lockscreen_scramble_pin_layout";
6867+
/** @hide */
6868+
public static final String SCRAMBLE_PIN_LAYOUT_SECONDARY =
6869+
"lockscreen_scramble_pin_layout_secondary";
68666870

68676871
/** @hide */
68686872
public static final String SCRAMBLE_SIM_PIN_LAYOUT = "scramble_sim_pin_layout";

0 commit comments

Comments
 (0)