Disable fake landscape UI

Bug: 131360075
Change-Id: I21e0a6cdf332e2d16821c589f9630c254b595770
This commit is contained in:
Sunny Goyal
2019-06-19 14:24:38 -07:00
parent 035770e421
commit 3e195d7429
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -430,6 +430,10 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
super.onConfigurationChanged(newConfig);
}
public void reload() {
onIdpChanged(mDeviceProfile.inv);
}
private boolean supportsFakeLandscapeUI() {
return FeatureFlags.FAKE_LANDSCAPE_UI.get() && !mRotationHelper.homeScreenCanRotate();
}
+2 -1
View File
@@ -301,7 +301,8 @@ public class LauncherModel extends BroadcastReceiver
}
}
} else if (IS_DOGFOOD_BUILD && ACTION_FORCE_ROLOAD.equals(action)) {
forceReload();
Launcher l = (Launcher) getCallback();
l.reload();
}
}
@@ -109,7 +109,7 @@ abstract class BaseFlags {
"Show chip hints and gleams on the overview screen");
public static final TogglableFlag FAKE_LANDSCAPE_UI = new TogglableFlag(
"FAKE_LANDSCAPE_UI", true,
"FAKE_LANDSCAPE_UI", false,
"Rotate launcher UI instead of using transposed layout");
public static void initialize(Context context) {