Loading core/java/android/view/InsetsController.java +11 −1 Original line number Diff line number Diff line Loading @@ -658,6 +658,9 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation /** Set of inset types which cannot be controlled by the user animation */ private @InsetsType int mDisabledUserAnimationInsetsTypes; /** Set of inset types which are existing */ private @InsetsType int mExistingTypes = 0; /** Set of inset types which are visible */ private @InsetsType int mVisibleTypes = WindowInsets.Type.defaultVisible(); Loading Loading @@ -906,6 +909,12 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation } mVisibleTypes = visibleTypes; } if (mExistingTypes != existingTypes) { if (WindowInsets.Type.hasCompatSystemBars(mExistingTypes ^ existingTypes)) { mCompatSysUiVisibilityStaled = true; } mExistingTypes = existingTypes; } InsetsState.traverse(mState, newState, mRemoveGoneSources); updateDisabledUserAnimationTypes(disabledUserAnimationTypes); Loading Loading @@ -1662,7 +1671,8 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation if (mCompatSysUiVisibilityStaled) { mCompatSysUiVisibilityStaled = false; mHost.updateCompatSysUiVisibility( mVisibleTypes, mRequestedVisibleTypes, mControllableTypes); // Treat non-existing types as controllable types for compatibility. mVisibleTypes, mRequestedVisibleTypes, mControllableTypes | ~mExistingTypes); } } Loading Loading
core/java/android/view/InsetsController.java +11 −1 Original line number Diff line number Diff line Loading @@ -658,6 +658,9 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation /** Set of inset types which cannot be controlled by the user animation */ private @InsetsType int mDisabledUserAnimationInsetsTypes; /** Set of inset types which are existing */ private @InsetsType int mExistingTypes = 0; /** Set of inset types which are visible */ private @InsetsType int mVisibleTypes = WindowInsets.Type.defaultVisible(); Loading Loading @@ -906,6 +909,12 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation } mVisibleTypes = visibleTypes; } if (mExistingTypes != existingTypes) { if (WindowInsets.Type.hasCompatSystemBars(mExistingTypes ^ existingTypes)) { mCompatSysUiVisibilityStaled = true; } mExistingTypes = existingTypes; } InsetsState.traverse(mState, newState, mRemoveGoneSources); updateDisabledUserAnimationTypes(disabledUserAnimationTypes); Loading Loading @@ -1662,7 +1671,8 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation if (mCompatSysUiVisibilityStaled) { mCompatSysUiVisibilityStaled = false; mHost.updateCompatSysUiVisibility( mVisibleTypes, mRequestedVisibleTypes, mControllableTypes); // Treat non-existing types as controllable types for compatibility. mVisibleTypes, mRequestedVisibleTypes, mControllableTypes | ~mExistingTypes); } } Loading