Allowing Launcher to draw behind cutouts
> Launcher uses realSize, availableSize and insets to calculate various layout values. Without drawing behind cutouts, these values are not consistent (insets + availableSize != realSize) leading to jumps in layouts. > Removing fake black bars in low-ram devices to avoid inconsistent insets. > Fixing various layouts not taking lert/right insets into account. Bug: 156268804 Change-Id: I8441db8a468b08a65b57b932050b5b4b37313966
This commit is contained in:
1 parent
1b8f1cd220
commit
786940ae93
8 files changed
+53
-98
No files matched your search
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.launcher3.util;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
|
||||
@@ -33,8 +32,7 @@ public class SystemUiController {
|
||||
public static final int UI_STATE_BASE_WINDOW = 0;
|
||||
public static final int UI_STATE_ALL_APPS = 1;
|
||||
public static final int UI_STATE_WIDGET_BOTTOM_SHEET = 2;
|
||||
public static final int UI_STATE_ROOT_VIEW = 3;
|
||||
public static final int UI_STATE_OVERVIEW = 4;
|
||||
public static final int UI_STATE_OVERVIEW = 3;
|
||||
|
||||
public static final int FLAG_LIGHT_NAV = 1 << 0;
|
||||
public static final int FLAG_DARK_NAV = 1 << 1;
|
||||
@@ -42,7 +40,7 @@ public class SystemUiController {
|
||||
public static final int FLAG_DARK_STATUS = 1 << 3;
|
||||
|
||||
private final Window mWindow;
|
||||
private final int[] mStates = new int[5];
|
||||
private final int[] mStates = new int[4];
|
||||
|
||||
public SystemUiController(Window window) {
|
||||
mWindow = window;
|
||||
|
||||
Reference in new issue
Block a user