From 0fa5925b0a6ef96bdddee7328aa007fdb6c23b36 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Fri, 16 Dec 2016 20:08:51 +0100 Subject: LockPatternUtils: userId is required Signed-off-by: Wolfgang Wiedmeyer --- core/java/com/android/internal/widget/LockPatternUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index 92f520b..d25f995 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -1138,8 +1138,8 @@ public class LockPatternUtils { * @param pattern The current lockscreen pattern * @return Whether the lockscreen pattern was correct. */ - public void replaceSeparateEncryptionPasswordWithPattern(List pattern) { - String stringPattern = patternToString(pattern); + public void replaceSeparateEncryptionPasswordWithPattern(List pattern, int userId) { + String stringPattern = patternToString(pattern, userId); updateEncryptionPassword(StorageManager.CRYPT_TYPE_PATTERN, stringPattern); setSeparateEncryptionPasswordEnabled(false); } -- cgit v1.1