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

Change-Id: I41b626a96ef7cbf7802e144fd6b2ae645ff004a8
This commit is contained in:
Hongwei Wang authored and Automerger Merge Worker committed 2020-03-26 08:01:19 +00:00
commit c915022606
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;