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
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