Merge "Remove unnecessary dispatchInsets routing" into ub-launcher3-qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-24 00:31:18 +00:00
committed by Android (Google) Code Review
4 changed files with 16 additions and 18 deletions

View File

@@ -496,12 +496,14 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext>
}
}
@Override
@TargetApi(Build.VERSION_CODES.Q)
public void updateTouchExcludeRegion(WindowInsets insets) {
public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) {
if (Utilities.ATLEAST_Q) {
Insets gestureInsets = insets.getMandatorySystemGestureInsets();
mSystemGestureRegion.set(gestureInsets.left, gestureInsets.top,
gestureInsets.right, gestureInsets.bottom);
}
return super.dispatchApplyWindowInsets(insets);
}
}