am 024fd0c6: Disable color view animations when stable insets change
* commit '024fd0c6051e01579018fad0c1a56e9e47b195df': Disable color view animations when stable insets change
This commit is contained in:
@@ -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
|
// indicates that the window was either just added and received them for the
|
||||||
// first time, or the window size or position has changed.
|
// first time, or the window size or position has changed.
|
||||||
boolean hasTopStableInset = insets.getStableInsetTop() != 0;
|
boolean hasTopStableInset = insets.getStableInsetTop() != 0;
|
||||||
disallowAnimate |= hasTopStableInset && !mLastHasTopStableInset;
|
disallowAnimate |= (hasTopStableInset != mLastHasTopStableInset);
|
||||||
mLastHasTopStableInset = hasTopStableInset;
|
mLastHasTopStableInset = hasTopStableInset;
|
||||||
|
|
||||||
boolean hasBottomStableInset = insets.getStableInsetBottom() != 0;
|
boolean hasBottomStableInset = insets.getStableInsetBottom() != 0;
|
||||||
disallowAnimate |= hasBottomStableInset && !mLastHasBottomStableInset;
|
disallowAnimate |= (hasBottomStableInset != mLastHasBottomStableInset);
|
||||||
mLastHasBottomStableInset = hasBottomStableInset;
|
mLastHasBottomStableInset = hasBottomStableInset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user