OSDN Git Service

Fix setLong so it actualy uses userHandle passed in.
authorKenny Guy <kennyguy@google.com>
Fri, 29 Nov 2013 16:33:05 +0000 (16:33 +0000)
committerKenny Guy <kennyguy@google.com>
Wed, 4 Dec 2013 17:52:32 +0000 (17:52 +0000)
Change-Id: Iddcd02b25890cf0a8d5569699b53e97b8640000d

core/java/com/android/internal/widget/LockPatternUtils.java

index b69fa20..3419f15 100644 (file)
@@ -1200,7 +1200,7 @@ public class LockPatternUtils {
 
     private void setLong(String secureSettingKey, long value, int userHandle) {
         try {
-            getLockSettings().setLong(secureSettingKey, value, getCurrentOrCallingUserId());
+            getLockSettings().setLong(secureSettingKey, value, userHandle);
         } catch (RemoteException re) {
             // What can we do?
             Log.e(TAG, "Couldn't write long " + secureSettingKey + re);