Loading src/com/android/launcher3/Workspace.java +2 −5 Original line number Diff line number Diff line Loading @@ -398,6 +398,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T> setPageIndicatorInset(); } @SuppressLint("NewApi") private void setPageIndicatorInset() { DeviceProfile grid = mLauncher.getDeviceProfile(); Loading @@ -420,11 +421,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T> // Get "safe" drawable inset to not overlap gesture pill int safeBottomInset; WindowInsets rootInsets = mLauncher.getWindow().getDecorView().getRootWindowInsets(); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.R) { safeBottomInset = rootInsets.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()).bottom; } else { safeBottomInset = rootInsets.getStableInsetBottom(); } lp.bottomMargin = safeBottomInset; } else { lp.bottomMargin = grid.hotseatBarSizePx; Loading Loading
src/com/android/launcher3/Workspace.java +2 −5 Original line number Diff line number Diff line Loading @@ -398,6 +398,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T> setPageIndicatorInset(); } @SuppressLint("NewApi") private void setPageIndicatorInset() { DeviceProfile grid = mLauncher.getDeviceProfile(); Loading @@ -420,11 +421,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T> // Get "safe" drawable inset to not overlap gesture pill int safeBottomInset; WindowInsets rootInsets = mLauncher.getWindow().getDecorView().getRootWindowInsets(); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.R) { safeBottomInset = rootInsets.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()).bottom; } else { safeBottomInset = rootInsets.getStableInsetBottom(); } lp.bottomMargin = safeBottomInset; } else { lp.bottomMargin = grid.hotseatBarSizePx; Loading