Swiping from L/R opens Notifications/QS

Hack by making the views GONE on swipe.

Enable: "adb shell device_config put systemui qs_split_enabled true"

Test: manual
Change-Id: I8c792cb9ae1233e7f3ed066deb6972a36de6da19
This commit is contained in:
Fabian Kozynski
2019-08-01 17:12:20 -04:00
parent 786974f14a
commit dfa4a36883

View File

@@ -1266,6 +1266,15 @@ public class NotificationPanelView extends PanelView implements
// earlier so the state is already up to date when dragging down.
setListening(true);
}
if (isQsSplitEnabled() && !mKeyguardShowing) {
if (mQsExpandImmediate) {
mNotificationStackScroller.setVisibility(View.GONE);
mQsFrame.setVisibility(View.VISIBLE);
} else {
mNotificationStackScroller.setVisibility(View.VISIBLE);
mQsFrame.setVisibility(View.GONE);
}
}
return false;
}
@@ -1539,6 +1548,10 @@ public class NotificationPanelView extends PanelView implements
mBarState = statusBarState;
mKeyguardShowing = keyguardShowing;
if (mKeyguardShowing && isQsSplitEnabled()) {
mNotificationStackScroller.setVisibility(View.VISIBLE);
mQsFrame.setVisibility(View.VISIBLE);
}
if (oldState == StatusBarState.KEYGUARD
&& (goingToFullShade || statusBarState == StatusBarState.SHADE_LOCKED)) {