mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Do a full touch dispach when proxying touch
> Workspace can no longer be scrolled when swipin on hotseat Bug: 130027168 Change-Id: Ie4621e5b7de8d7248227b25fb065249d0c252090
This commit is contained in:
@@ -223,14 +223,18 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext>
|
||||
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent ev) {
|
||||
return verifyTouchDispatch(this, ev) && super.dispatchTouchEvent(ev);
|
||||
return dispatchTouchEvent(this, ev);
|
||||
}
|
||||
|
||||
public boolean dispatchTouchEvent(Object caller, MotionEvent ev) {
|
||||
return verifyTouchDispatch(caller, ev) && super.dispatchTouchEvent(ev);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the {@param caller} is allowed to dispatch {@param ev} on this view,
|
||||
* false otherwise.
|
||||
*/
|
||||
public boolean verifyTouchDispatch(Object caller, MotionEvent ev) {
|
||||
private boolean verifyTouchDispatch(Object caller, MotionEvent ev) {
|
||||
int action = ev.getAction();
|
||||
if (action == ACTION_DOWN) {
|
||||
if (mCurrentTouchOwner != null) {
|
||||
|
||||
Reference in New Issue
Block a user