mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Cleanup API checks for P, Q, and R.
Test: Build with gradle Flag: NA Change-Id: I3ef17090741d14bebd76cf09cf3dc5ac4f11e686
This commit is contained in:
@@ -191,14 +191,12 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
|
||||
@Override
|
||||
protected void onLayout(boolean changed, int l, int t, int r, int b) {
|
||||
super.onLayout(changed, l, t, r, b);
|
||||
if (Utilities.ATLEAST_Q) {
|
||||
for (int i = 0; i < HANDLE_COUNT; i++) {
|
||||
View dragHandle = mDragHandles[i];
|
||||
mSystemGestureExclusionRects.get(i).set(dragHandle.getLeft(), dragHandle.getTop(),
|
||||
dragHandle.getRight(), dragHandle.getBottom());
|
||||
}
|
||||
setSystemGestureExclusionRects(mSystemGestureExclusionRects);
|
||||
for (int i = 0; i < HANDLE_COUNT; i++) {
|
||||
View dragHandle = mDragHandles[i];
|
||||
mSystemGestureExclusionRects.get(i).set(dragHandle.getLeft(), dragHandle.getTop(),
|
||||
dragHandle.getRight(), dragHandle.getBottom());
|
||||
}
|
||||
setSystemGestureExclusionRects(mSystemGestureExclusionRects);
|
||||
}
|
||||
|
||||
public static void showForWidget(LauncherAppWidgetHostView widget, CellLayout cellLayout) {
|
||||
|
||||
Reference in New Issue
Block a user