Disable fake landscape UI

am: 3e195d7429

Change-Id: Ie12781c525420397e3e474a36e0ea0ec33bf8649
This commit is contained in:
Sunny Goyal
2019-06-19 15:23:09 -07:00
committed by android-build-merger
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) {