From 2b39e764ab9485a6db914a376e35e5629ec16b84 Mon Sep 17 00:00:00 2001 From: Tarandeep Singh Date: Fri, 14 Feb 2020 10:14:41 -0800 Subject: [PATCH] Window Manager Flag Migration (14/n) (Flips the flag) Fully change to the new insets mode. Bug: 118118435 Test: atest InsetsSourceProviderTest InsetsStateControllerTest InsetsPolicyTest WindowStateTests CommandQueueTest RegisterStatusBarResultTest InsetsFlagsTest LightBarControllerTest RegisterStatusBarResultTest ViewRootImplTest DisplayPolicyLayoutTests DisplayPolicyInsetsTests DisplayPolicyTests TaskSnapshotSurfaceTest AnimatedVectorDrawableParameterizedTest Change-Id: I2041074beb4a6fd9da189c1d9127fc0ed1999770 --- core/java/android/view/ViewRootImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index e9a12a8fa6250..44ab596b93ee9 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -219,13 +219,6 @@ public final class ViewRootImpl implements ViewParent, */ private static final String USE_NEW_INSETS_PROPERTY = "persist.debug.new_insets"; - /** - * @see #USE_NEW_INSETS_PROPERTY - * @hide - */ - public static int sNewInsetsMode = - SystemProperties.getInt(USE_NEW_INSETS_PROPERTY, 0); - /** * @see #USE_NEW_INSETS_PROPERTY * @hide @@ -244,6 +237,13 @@ public final class ViewRootImpl implements ViewParent, */ public static final int NEW_INSETS_MODE_FULL = 2; + /** + * @see #USE_NEW_INSETS_PROPERTY + * @hide + */ + public static int sNewInsetsMode = + SystemProperties.getInt(USE_NEW_INSETS_PROPERTY, NEW_INSETS_MODE_FULL); + /** * Set this system property to true to force the view hierarchy to render * at 60 Hz. This can be used to measure the potential framerate.