Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50b82f88 authored by Pat Manning's avatar Pat Manning Committed by Android (Google) Code Review
Browse files

Merge "Use DisplayController INSTANCE for info instead of IDP INSTANCE." into tm-qpr-dev

parents d9ca71b1 80040802
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;