Letting touch pass even in disabled states
In disabled states, dragLayer should not receive touch anyway. Removing the additional check to avoid user getting stuck. Bug: 134062513 Change-Id: Id31a31254377e9a737ecd6e9905e66c54e4eb740
This commit is contained in:
@@ -130,16 +130,6 @@ public class DragLayer extends BaseDragLayer<Launcher> {
|
||||
return mDragController.dispatchKeyEvent(event) || super.dispatchKeyEvent(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean findActiveController(MotionEvent ev) {
|
||||
if (mActivity.getStateManager().getState().disableInteraction) {
|
||||
// You Shall Not Pass!!!
|
||||
mActiveController = null;
|
||||
return true;
|
||||
}
|
||||
return super.findActiveController(ev);
|
||||
}
|
||||
|
||||
private boolean isEventOverAccessibleDropTargetBar(MotionEvent ev) {
|
||||
return isInAccessibleDrag() && isEventOverView(mActivity.getDropTargetBar(), ev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user