OSDN Git Service

Fix initMsgList() check to return if encrypted storage is locked
authorAjay Panicker <apanicke@google.com>
Thu, 25 Aug 2016 02:40:11 +0000 (19:40 -0700)
committerAjay Panicker <apanicke@google.com>
Thu, 25 Aug 2016 02:43:12 +0000 (02:43 +0000)
Bug: 30809925
Change-Id: I3f02779116bbae3bfcd006a8bb2012b517cda7e7

src/com/android/bluetooth/map/BluetoothMapContentObserver.java

index 0f9e23e..f81f99c 100644 (file)
@@ -1182,7 +1182,7 @@ public class BluetoothMapContentObserver {
     private void initMsgList() throws RemoteException {
         if (V) Log.d(TAG, "initMsgList");
         UserManager manager = UserManager.get(mContext);
-        if (manager == null || manager.isUserUnlocked()) return;
+        if (manager == null || !manager.isUserUnlocked()) return;
 
         if (mEnableSmsMms) {
             HashMap<Long, Msg> msgListSms = new HashMap<Long, Msg>();