Merge "[Shell Transition]Fix live tile be hidden by wallpaper leash." into tm-qpr-dev am: 0dd24fc7c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18911564 Change-Id: Ieb8e5cafbb11be8ad3f1ce07fe5fb72f0dc89450 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -391,7 +391,7 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
|
||||
.withCornerRadius(getCurrentCornerRadius());
|
||||
|
||||
if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
|
||||
builder.withLayer(mDrawsBelowRecents ? Integer.MIN_VALUE : 0);
|
||||
builder.withLayer(mDrawsBelowRecents ? Integer.MIN_VALUE + 1 : Integer.MAX_VALUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -139,10 +139,12 @@ public class TransformParams {
|
||||
|
||||
public SurfaceParams[] createSurfaceParams(BuilderProxy proxy) {
|
||||
RemoteAnimationTargets targets = mTargetSet;
|
||||
SurfaceParams[] surfaceParams = new SurfaceParams[targets.unfilteredApps.length];
|
||||
final int appLength = targets.unfilteredApps.length;
|
||||
final int wallpaperLength = targets.wallpapers != null ? targets.wallpapers.length : 0;
|
||||
SurfaceParams[] surfaceParams = new SurfaceParams[appLength + wallpaperLength];
|
||||
mRecentsSurface = getRecentsSurface(targets);
|
||||
|
||||
for (int i = 0; i < targets.unfilteredApps.length; i++) {
|
||||
for (int i = 0; i < appLength; i++) {
|
||||
RemoteAnimationTargetCompat app = targets.unfilteredApps[i];
|
||||
SurfaceParams.Builder builder = new SurfaceParams.Builder(app.leash);
|
||||
|
||||
@@ -166,6 +168,12 @@ public class TransformParams {
|
||||
}
|
||||
surfaceParams[i] = builder.build();
|
||||
}
|
||||
// always put wallpaper layer to bottom.
|
||||
for (int i = 0; i < wallpaperLength; i++) {
|
||||
RemoteAnimationTargetCompat wallpaper = targets.wallpapers[i];
|
||||
surfaceParams[appLength + i] = new SurfaceParams.Builder(wallpaper.leash)
|
||||
.withLayer(Integer.MIN_VALUE).build();
|
||||
}
|
||||
return surfaceParams;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user