mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Make inline qsb part of grid attrs
This should make it more configurable, and be independent of the screen size set by the user. Fix: 223726518 Test: atest Launcher3Tests:HotseatSizeTest Test: atest Launcher3Tests:InlineQsbTest Change-Id: If04f3fb0f556103f60b580c757a9fc06da561516
This commit is contained in:
@@ -26,7 +26,6 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_NAVIGATION_MODE_GESTURE_BUTTON;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
import static com.android.launcher3.util.PackageManagerHelper.getPackageFilter;
|
||||
import static com.android.launcher3.util.window.WindowManagerProxy.MIN_LARGE_TABLET_WIDTH;
|
||||
import static com.android.launcher3.util.window.WindowManagerProxy.MIN_TABLET_WIDTH;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
@@ -348,13 +347,6 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
return smallestSizeDp(bounds) >= MIN_TABLET_WIDTH;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the bounds represent a large tablet.
|
||||
*/
|
||||
public boolean isLargeTablet(WindowBounds bounds) {
|
||||
return smallestSizeDp(bounds) >= MIN_LARGE_TABLET_WIDTH;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns smallest size in dp for given bounds.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user