Merge "Disable rounded corners when in multi window" into qt-dev
am: 870b9df649
Change-Id: I50685ea140726b8a14f71630b0f1e9ee2a9a575d
This commit is contained in:
@@ -2557,12 +2557,17 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
|
||||
|
||||
final Animation a = loadAnimation(lp, transit, enter, isVoiceInteraction);
|
||||
if (a != null) {
|
||||
// Only apply corner radius to animation if we're not in multi window mode.
|
||||
// We don't want rounded corners when in pip or split screen.
|
||||
final float windowCornerRadius = !inMultiWindowMode()
|
||||
? getDisplayContent().getWindowCornerRadius()
|
||||
: 0;
|
||||
adapter = new LocalAnimationAdapter(
|
||||
new WindowAnimationSpec(a, mTmpPoint, mTmpRect,
|
||||
getDisplayContent().mAppTransition.canSkipFirstFrame(),
|
||||
appStackClipMode,
|
||||
true /* isAppAnimation */,
|
||||
getDisplayContent().getWindowCornerRadius()),
|
||||
windowCornerRadius),
|
||||
mWmService.mSurfaceAnimationRunner);
|
||||
if (a.getZAdjustment() == Animation.ZORDER_TOP) {
|
||||
mNeedsZBoost = true;
|
||||
|
||||
@@ -4599,7 +4599,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
||||
anim.scaleCurrentDuration(mWmService.getWindowAnimationScaleLocked());
|
||||
final AnimationAdapter adapter = new LocalAnimationAdapter(
|
||||
new WindowAnimationSpec(anim, mSurfacePosition, false /* canSkipFirstFrame */,
|
||||
getDisplayContent().getWindowCornerRadius()),
|
||||
0 /* windowCornerRadius */),
|
||||
mWmService.mSurfaceAnimationRunner);
|
||||
startAnimation(mPendingTransaction, adapter);
|
||||
commitPendingTransaction();
|
||||
|
||||
Reference in New Issue
Block a user