Merge "Fix AlwaysOnTop stack may covered by RemoteAnimation" into rvc-dev am: 992ef571d3 am: b5987a3e91 am: 718720e18d
Change-Id: If17e2934ac50c71d880c6d241c82683af8ec0c41
This commit is contained in:
-3
@@ -208,7 +208,6 @@ public class AppWindowAnimationHelper {
|
||||
float alpha;
|
||||
float cornerRadius = 0f;
|
||||
float scale = Math.max(mCurrentRect.width(), mTargetRect.width()) / crop.width();
|
||||
int layer = RemoteAnimationProvider.getLayer(app, mBoostModeTargetLayers);
|
||||
if (app.mode == params.mTargetSet.targetMode) {
|
||||
alpha = mTaskAlphaCallback.getAlpha(app, params.mTargetAlpha);
|
||||
if (app.activityType != RemoteAnimationTargetCompat.ACTIVITY_TYPE_HOME) {
|
||||
@@ -245,13 +244,11 @@ public class AppWindowAnimationHelper {
|
||||
alpha = mBaseAlphaCallback.getAlpha(app, progress);
|
||||
if (ENABLE_QUICKSTEP_LIVE_TILE.get() && params.mLauncherOnTop) {
|
||||
crop = null;
|
||||
layer = Integer.MAX_VALUE;
|
||||
}
|
||||
}
|
||||
builder.withAlpha(alpha)
|
||||
.withMatrix(mTmpMatrix)
|
||||
.withWindowCrop(crop)
|
||||
.withLayer(layer)
|
||||
// Since radius is in Surface space, but we draw the rounded corners in screen
|
||||
// space, we have to undo the scale
|
||||
.withCornerRadius(cornerRadius / scale);
|
||||
|
||||
@@ -611,7 +611,6 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
|
||||
.withWindowCrop(target.screenSpaceBounds)
|
||||
.withAlpha(1f);
|
||||
}
|
||||
builder.withLayer(RemoteAnimationProvider.getLayer(target, MODE_OPENING));
|
||||
params[i] = builder.build();
|
||||
}
|
||||
surfaceApplier.scheduleApply(params);
|
||||
@@ -718,7 +717,6 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
|
||||
params[i] = new SurfaceParams.Builder(target.leash)
|
||||
.withAlpha(1f)
|
||||
.withWindowCrop(target.screenSpaceBounds)
|
||||
.withLayer(RemoteAnimationProvider.getLayer(target, MODE_OPENING))
|
||||
.withCornerRadius(cornerRadius)
|
||||
.build();
|
||||
}
|
||||
@@ -775,7 +773,6 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
|
||||
}
|
||||
params[i] = builder
|
||||
.withWindowCrop(target.screenSpaceBounds)
|
||||
.withLayer(RemoteAnimationProvider.getLayer(target, MODE_CLOSING))
|
||||
.build();
|
||||
}
|
||||
surfaceApplier.scheduleApply(params);
|
||||
|
||||
@@ -62,15 +62,12 @@ public abstract class RemoteAnimationProvider {
|
||||
static void prepareTargetsForFirstFrame(RemoteAnimationTargetCompat[] targets,
|
||||
TransactionCompat t, int boostModeTargets) {
|
||||
for (RemoteAnimationTargetCompat target : targets) {
|
||||
t.setLayer(target.leash, getLayer(target, boostModeTargets));
|
||||
t.show(target.leash);
|
||||
}
|
||||
}
|
||||
|
||||
public static int getLayer(RemoteAnimationTargetCompat target, int boostModeTarget) {
|
||||
return target.mode == boostModeTarget
|
||||
? Z_BOOST_BASE + target.prefixOrderIndex
|
||||
: target.prefixOrderIndex;
|
||||
return target.prefixOrderIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user