mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Merge "Don't allow Taskbar unstash during Assistant gesture" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e2a6113e93
@@ -911,9 +911,9 @@ public class TouchInteractionService extends Service
|
||||
base = tryCreateAssistantInputConsumer(base, newGestureState, event, reasonString);
|
||||
}
|
||||
|
||||
// If Taskbar is present, we listen for long press or cursor hover events to unstash it.
|
||||
// If Taskbar is present, we listen for swipe or cursor hover events to unstash it.
|
||||
TaskbarActivityContext tac = mTaskbarManager.getCurrentActivityContext();
|
||||
if (tac != null) {
|
||||
if (tac != null && !(base instanceof AssistantInputConsumer)) {
|
||||
// Present always on large screen or on small screen w/ flag
|
||||
DeviceProfile dp = tac.getDeviceProfile();
|
||||
boolean useTaskbarConsumer = dp.isTaskbarPresent && !TaskbarManager.isPhoneMode(dp)
|
||||
|
||||
Reference in New Issue
Block a user