OSDN Git Service

Fixes recents visibility when overview service connection changes
authorMatthew Ng <ngmatthew@google.com>
Mon, 8 Jan 2018 22:26:40 +0000 (14:26 -0800)
committerMatthew Ng <ngmatthew@google.com>
Mon, 8 Jan 2018 22:32:22 +0000 (14:32 -0800)
When the service is connected, it will immediately show the recents
button and when disconnected the button will be invisible.

Test: manual, toggle in launcher settings
Bug: 67957962
Change-Id: Ie36c4f0a50b6c3ae11e5367ae70a57ee16056e09

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

index 2796f0f..392581d 100644 (file)
@@ -199,8 +199,10 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
         }
     }
 
-    private final OverviewProxyListener mOverviewProxyListener =
-            isConnected -> setSlippery(!isConnected);
+    private final OverviewProxyListener mOverviewProxyListener = isConnected -> {
+        setSlippery(!isConnected);
+        setDisabledFlags(mDisabledFlags, true);
+    };
 
     public NavigationBarView(Context context, AttributeSet attrs) {
         super(context, attrs);