mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Show all TaskViews when doing seamless overview rotation
* If user is scrolling and rotates overview in fake landscape, we wouldn't change the alpha to show if it was hidden previously. Now we only skip changing the alpha if it's already visible. Bug: 194715506 Test: Scroll overview in fake landscape and rotate. No more invisible task. Change-Id: Idb519125fbb5ec7be33e0d7b6dd313fb4df684db
This commit is contained in:
@@ -1729,10 +1729,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
int runningIndex = getCurrentPage();
|
||||
AnimatorSet as = new AnimatorSet();
|
||||
for (int i = 0; i < getTaskViewCount(); i++) {
|
||||
if (runningIndex == i) {
|
||||
View taskView = getTaskViewAt(i);
|
||||
if (runningIndex == i && taskView.getAlpha() != 0) {
|
||||
continue;
|
||||
}
|
||||
View taskView = getTaskViewAt(i);
|
||||
as.play(ObjectAnimator.ofFloat(taskView, View.ALPHA, fadeInChildren ? 0 : 1));
|
||||
}
|
||||
return as;
|
||||
|
||||
Reference in New Issue
Block a user