mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Merge "Use DisplayController INSTANCE for info instead of IDP INSTANCE." into tm-qpr-dev am: 50b82f887c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20836636 Change-Id: I38f6ceb9309cf010513f75f73f77cb65bb9df3b0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -268,8 +268,8 @@ public class SettingsActivity extends FragmentActivity
|
||||
return !WidgetsModel.GO_DISABLE_NOTIFICATION_DOTS;
|
||||
|
||||
case ALLOW_ROTATION_PREFERENCE_KEY:
|
||||
DisplayController.Info info = InvariantDeviceProfile.INSTANCE.get(
|
||||
getContext()).getDeviceProfile(getContext()).getDisplayInfo();
|
||||
DisplayController.Info info =
|
||||
DisplayController.INSTANCE.get(getContext()).getInfo();
|
||||
if (info.isTablet(info.realBounds)) {
|
||||
// Launcher supports rotation by default. No need to show this setting.
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user