mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Animate RecentsView when rotating in fake orientations" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
2e80918e75
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user