From c1a97b12fe6472d3726203dd8b2545fe387518a9 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Wed, 28 Mar 2018 14:02:00 -0700 Subject: [PATCH] Opalayout can check quickstep icons without needing navbarview (1/2) Opalayout should not need NavigationBarView to determine if the icon should be for quickstep icons. It does not need to know if recents is disabled because of lock tasks and so the check is now in OverviewProxyService. Then when Opalayout needs to layout the home button it should be able to get the information regardless if NavigationBarView is available or not. Bug: 76210393 Fixes: 76434966 Fixes: 74071465 Test: change language in settings Change-Id: I246175c3e2d5c990da6823df4108d48522b258bd --- .../com/android/systemui/OverviewProxyService.java | 5 +++++ .../systemui/statusbar/phone/NavigationBarView.java | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 2983df6ec937b..816c598daf4fe 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -50,6 +50,7 @@ import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; +import static com.android.systemui.shared.system.NavigationBarCompat.FLAG_DISABLE_SWIPE_UP; import static com.android.systemui.shared.system.NavigationBarCompat.InteractionType; /** @@ -249,6 +250,10 @@ public class OverviewProxyService implements CallbackController