Use flexible insets by default

Flip the flag.

Bug: 161689946
Bug: 169329927
Test: DisplayPolicyTests InsetsSourceProviderTest
      InsetsStateControllerTest
Change-Id: I3b5dbdce5419c40fd3d7072a5feef952dfa61a6b
This commit is contained in:
Yunfan Chen
2021-04-05 13:30:54 +09:00
parent 89b9508a37
commit 716b952a5e

View File

@@ -304,7 +304,7 @@ public final class ViewRootImpl implements ViewParent,
* {@hide}
*/
public static final boolean INSETS_LAYOUT_GENERALIZATION =
SystemProperties.getBoolean(USE_FLEXIBLE_INSETS, false);
SystemProperties.getBoolean(USE_FLEXIBLE_INSETS, true);
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
static final ThreadLocal<HandlerActionQueue> sRunQueues = new ThreadLocal<HandlerActionQueue>();