am d245ad24: am 024fd0c6: Disable color view animations when stable insets change

* commit 'd245ad24f5e6e8c7b302689467b12718c94f4ced':
  Disable color view animations when stable insets change
This commit is contained in:
Adrian Roos
2015-02-17 18:46:40 +00:00
committed by Android Git Automerger

View File

@@ -2867,11 +2867,11 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
// indicates that the window was either just added and received them for the
// first time, or the window size or position has changed.
boolean hasTopStableInset = insets.getStableInsetTop() != 0;
disallowAnimate |= hasTopStableInset && !mLastHasTopStableInset;
disallowAnimate |= (hasTopStableInset != mLastHasTopStableInset);
mLastHasTopStableInset = hasTopStableInset;
boolean hasBottomStableInset = insets.getStableInsetBottom() != 0;
disallowAnimate |= hasBottomStableInset && !mLastHasBottomStableInset;
disallowAnimate |= (hasBottomStableInset != mLastHasBottomStableInset);
mLastHasBottomStableInset = hasBottomStableInset;
}