Merge "Animate RecentsView when rotating in fake orientations" into main

This commit is contained in:
Treehugger Robot
2024-06-04 19:05:05 +00:00
committed by Android (Google) Code Review

View File

@@ -2676,17 +2676,9 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
pa.start();
}
public AnimatorSet setRecentsChangedOrientation(boolean fadeInChildren) {
getRunningTaskIndex();
int runningIndex = getCurrentPage();
public AnimatorSet setRecentsChangedOrientation(boolean fadeOut) {
AnimatorSet as = new AnimatorSet();
for (int i = 0; i < getTaskViewCount(); i++) {
View taskView = requireTaskViewAt(i);
if (runningIndex == i && taskView.getAlpha() != 0) {
continue;
}
as.play(ObjectAnimator.ofFloat(taskView, View.ALPHA, fadeInChildren ? 0 : 1));
}
as.play(ObjectAnimator.ofFloat(this, View.ALPHA, fadeOut ? 0 : 1));
return as;
}