OSDN Git Service

Make sure to use right thread to change icon
authorJorim Jaggi <jjaggi@google.com>
Tue, 5 Jan 2016 13:59:28 +0000 (14:59 +0100)
committerJorim Jaggi <jjaggi@google.com>
Wed, 6 Jan 2016 13:52:01 +0000 (13:52 +0000)
Not sure why this ever worked.

Change-Id: Ib044236856522fb9d9e737c885d5e9223e5f3fe3

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

index eade753..a3d0ce6 100644 (file)
@@ -465,8 +465,13 @@ public class NavigationBarView extends LinearLayout {
                 }
 
                 @Override
-                public void onDockedStackExistsChanged(boolean exists) throws RemoteException {
-                    updateRecentsIcon(exists);
+                public void onDockedStackExistsChanged(final boolean exists) throws RemoteException {
+                    mHandler.post(new Runnable() {
+                        @Override
+                        public void run() {
+                            updateRecentsIcon(exists);
+                        }
+                    });
                 }
             });
         } catch (RemoteException e) {