Prevent taskbar from stashing in overview in live tile mode.
Fixes: 354627538 Flag: EXEMPT bugfix Test: Open app, go to overview, pause app Change-Id: I82717747408f5776a50aa239c384f87927b54832
This commit is contained in:
@@ -1462,7 +1462,8 @@ public abstract class RecentsView<
|
||||
anim.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
finishRecentsAnimation(false /* toRecents */, null);
|
||||
finishRecentsAnimation(false /* toRecents */, true /*shouldPip*/,
|
||||
allAppsAreTranslucent(apps), null);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -1473,6 +1474,18 @@ public abstract class RecentsView<
|
||||
anim.start();
|
||||
}
|
||||
|
||||
private boolean allAppsAreTranslucent(RemoteAnimationTarget[] apps) {
|
||||
if (apps == null) {
|
||||
return false;
|
||||
}
|
||||
for (int i = apps.length - 1; i >= 0; --i) {
|
||||
if (!apps[i].isTranslucent) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isTaskViewVisible(TaskView tv) {
|
||||
if (showAsGrid()) {
|
||||
int screenStart = getPagedOrientationHandler().getPrimaryScroll(this);
|
||||
|
||||
Reference in New Issue
Block a user