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

This commit is contained in:
Pat Manning
2023-01-04 13:47:23 +00:00
committed by Android (Google) Code Review

View File

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