summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2016-04-13 19:47:29 -0700
committerRoman Birg <roman@cyngn.com>2016-04-14 13:17:09 -0700
commit2ae2ee68efc22649509fc68cc525b9f67b882736 (patch)
tree6c1aa500c3abc297b240c3042f43ce89e8b72042 /packages/SettingsProvider
parentc694ab1c51081097089e2d546742cf6213689158 (diff)
downloadframeworks_base-2ae2ee68efc22649509fc68cc525b9f67b882736.zip
frameworks_base-2ae2ee68efc22649509fc68cc525b9f67b882736.tar.gz
frameworks_base-2ae2ee68efc22649509fc68cc525b9f67b882736.tar.bz2
LockPatternUtils: Use the actual user id to set pattern size
Ticket: CYNGNOS-2462 Change-Id: Ia68e26ec2dfc23317135d933bc25204c1380bb02
Diffstat (limited to 'packages/SettingsProvider')
-rw-r--r--packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
index 92e4f83..143d4ec 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
@@ -2250,7 +2250,7 @@ class DatabaseHelper extends SQLiteOpenHelper {
try {
LockPatternUtils lpu = new LockPatternUtils(mContext);
List<LockPatternView.Cell> cellPattern =
- LockPatternUtils.stringToPattern(lockPattern, lpu.getLockPatternSize());
+ LockPatternUtils.stringToPattern(lockPattern, lpu.getLockPatternSize(mUserHandle));
lpu.saveLockPattern(cellPattern, null, UserHandle.USER_OWNER);
} catch (IllegalArgumentException e) {
// Don't want corrupted lock pattern to hang the reboot process