Merge "Revert "Default fixed_rotation to off"" into rvc-dev am: 644e1a6f9a am: a6a192ae53 am: 43a78fbe6e

Change-Id: Id086001a513901f29974656c706ed8f55658ba11
This commit is contained in:
Hongwei Wang authored and Automerger Merge Worker committed 2020-03-26 08:31:28 +00:00
commit aeb0aad26b
2 files changed
+2 -2

No files matched your search

@@ -163,7 +163,7 @@ public final class FeatureFlags {
"Always use hardware optimization for folder animations.");
public static final BooleanFlag ENABLE_FIXED_ROTATION_TRANSFORM = getDebugFlag(
FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, false,
FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, true,
"Launch/close apps without rotation animation. Fix Launcher to portrait");
public static void initialize(Context context) {
@@ -134,7 +134,7 @@ public class RotationHelper implements OnSharedPreferenceChangeListener {
*/
private void updateForcedRotation(boolean setValueFromPrefs) {
boolean isForcedRotation = mFeatureFlagsPrefs
.getBoolean(FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, false)
.getBoolean(FLAG_ENABLE_FIXED_ROTATION_TRANSFORM, true)
&& !getAllowRotationDefaultValue();
if (mForcedRotation == isForcedRotation) {
return;