From 0035e383e455702bb4555e422145e5e178a779f0 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Tue, 5 Jan 2016 14:59:28 +0100 Subject: [PATCH] Make sure to use right thread to change icon Not sure why this ever worked. Change-Id: Ib044236856522fb9d9e737c885d5e9223e5f3fe3 --- .../com/android/systemui/statusbar/phone/NavigationBarView.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java index eade753e0d70..a3d0ce69bdd6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java @@ -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) { -- 2.11.0