Merge "The nav bar isn't restored when swiping an app up to home in landscape" into sc-dev am: cb10463a9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14660738 Change-Id: I87c96da938cd86d0646ed66bf182008b444a8387
This commit is contained in:
@@ -1801,7 +1801,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final FadeRotationAnimationController controller = mFadeRotationAnimationController;
|
final FadeRotationAnimationController controller = mFadeRotationAnimationController;
|
||||||
return controller == null || !controller.isTargetToken(w.mToken);
|
return controller == null || !controller.isHandledToken(w.mToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
void notifyInsetsChanged(Consumer<WindowState> dispatchInsetsChanged) {
|
void notifyInsetsChanged(Consumer<WindowState> dispatchInsetsChanged) {
|
||||||
|
|||||||
@@ -123,8 +123,13 @@ public class FadeRotationAnimationController extends FadeAnimationController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Returns {@code true} if the window is handled by this controller. */
|
/** Returns {@code true} if the window is handled by this controller. */
|
||||||
|
boolean isHandledToken(WindowToken token) {
|
||||||
|
return token == mNavBarToken || isTargetToken(token);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns {@code true} if the controller will run fade animations on the window. */
|
||||||
boolean isTargetToken(WindowToken token) {
|
boolean isTargetToken(WindowToken token) {
|
||||||
return token == mNavBarToken || mTargetWindowTokens.contains(token);
|
return mTargetWindowTokens.contains(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setOnShowRunnable(Runnable onShowRunnable) {
|
void setOnShowRunnable(Runnable onShowRunnable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user