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

Commit 80040802 authored by Pat Manning's avatar Pat Manning
Browse files

Use DisplayController INSTANCE for info instead of IDP INSTANCE.

Fix: 263850235
Test: Manual. Clear launcher data and open home settings.
Change-Id: I7b3ed4ec5b4b4edb3bd0c085e78088ea6157563b
parent d96be3eb
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;