Merge "The nav bar isn't restored when swiping an app up to home in landscape" into sc-dev
This commit is contained in:
@@ -1801,7 +1801,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
||||
return false;
|
||||
}
|
||||
final FadeRotationAnimationController controller = mFadeRotationAnimationController;
|
||||
return controller == null || !controller.isTargetToken(w.mToken);
|
||||
return controller == null || !controller.isHandledToken(w.mToken);
|
||||
}
|
||||
|
||||
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. */
|
||||
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) {
|
||||
return token == mNavBarToken || mTargetWindowTokens.contains(token);
|
||||
return mTargetWindowTokens.contains(token);
|
||||
}
|
||||
|
||||
void setOnShowRunnable(Runnable onShowRunnable) {
|
||||
|
||||
Reference in New Issue
Block a user