From 53896454efea32291fa41fb84cc5b611d2954295 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Wed, 30 May 2018 11:27:39 -0700 Subject: [PATCH] Show back button when launcher is disconnected from proxy service Whenever service is disconnected, the back button will be shown. Once the service is connected, launcher will decide whether or not to hide the back button. Test: adb shell am force-stop com.google.android.apps.nexuslauncher Change-Id: Ic947e51c00abd9591c800aa1023b8d9684dc5d93 Fixes: 80098608 --- .../com/android/systemui/OverviewProxyService.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 42bd66ae4a90d..9fc71c813d745 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -166,9 +166,7 @@ public class OverviewProxyService implements CallbackController { - for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { - mConnectionCallbacks.get(i).onBackButtonAlphaChanged(alpha, animate); - } + notifyBackButtonAlphaChanged(alpha, animate); }); } finally { Binder.restoreCallingIdentity(token); @@ -355,10 +353,17 @@ public class OverviewProxyService implements CallbackController= 0; --i) { + mConnectionCallbacks.get(i).onBackButtonAlphaChanged(alpha, animate); + } + } + private void notifyConnectionChanged() { for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { mConnectionCallbacks.get(i).onConnectionChanged(mOverviewProxy != null);