Fading out the home surface if home and recents are shown in separate surface

Bug: 134725160
Change-Id: Ia4c5e0eefc4d8b869840645f403d943831c471f1
This commit is contained in:
Sunny Goyal
2019-06-12 15:28:23 -07:00
parent 022b182634
commit 16284b956c
2 changed files with 11 additions and 1 deletions
@@ -33,20 +33,26 @@ public class RemoteAnimationTargetSet {
public final RemoteAnimationTargetCompat[] unfilteredApps;
public final RemoteAnimationTargetCompat[] apps;
public final int targetMode;
public final boolean hasRecents;
public RemoteAnimationTargetSet(RemoteAnimationTargetCompat[] apps, int targetMode) {
ArrayList<RemoteAnimationTargetCompat> filteredApps = new ArrayList<>();
boolean hasRecents = false;
if (apps != null) {
for (RemoteAnimationTargetCompat target : apps) {
if (target.mode == targetMode) {
filteredApps.add(target);
}
hasRecents |= target.activityType ==
RemoteAnimationTargetCompat.ACTIVITY_TYPE_RECENTS;
}
}
this.unfilteredApps = apps;
this.apps = filteredApps.toArray(new RemoteAnimationTargetCompat[filteredApps.size()]);
this.targetMode = targetMode;
this.hasRecents = hasRecents;
}
public RemoteAnimationTargetCompat findTask(int taskId) {