mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Handle swipe down on taskbar to stash
- Moved all touch-to-stash logic to new TaskbarStashViaTouchController (handles both tap outside to stash instantly as well as swipe down inside to stash after letting go) - This is a TouchController on TaskbarDragLayer, so it intercepts touches from TaskbarView before icons can be dragged during swipe down Test: swipe up to invoke transient taskbar in an app, swipe down or touch outside to stash Flag: ENABLE_TRANSIENT_TASKBAR=true Fixes: 246631710 Change-Id: I5cf64848bba34ad32fcc80a93fb4f79ebd2c10a7
This commit is contained in:
@@ -116,22 +116,6 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||
if (mControllerCallbacks != null) {
|
||||
mControllerCallbacks.tryStashBasedOnMotionEvent(ev);
|
||||
}
|
||||
return super.onInterceptTouchEvent(ev);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent ev) {
|
||||
if (mControllerCallbacks != null) {
|
||||
mControllerCallbacks.tryStashBasedOnMotionEvent(ev);
|
||||
}
|
||||
return super.onTouchEvent(ev);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewRemoved(View child) {
|
||||
super.onViewRemoved(child);
|
||||
|
||||
Reference in New Issue
Block a user