mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Forcefully move focused task to front when triggering the recents animation in 3-button nav
Quickly tapping the recents button can start a recents animation while a quick switch is running. This causes the the wrong page index to be used as the focused task index. Test: manual on large screen Fixes: 227562351 Change-Id: If99f74477e52ed0c7f7c5fd7b3dc8b201627068b
This commit is contained in:
@@ -235,6 +235,10 @@ public class OverviewCommandHelper {
|
||||
}
|
||||
};
|
||||
|
||||
RecentsView<?, ?> visibleRecentsView = activityInterface.getVisibleRecentsView();
|
||||
if (visibleRecentsView != null) {
|
||||
visibleRecentsView.moveFocusedTaskToFront();
|
||||
}
|
||||
if (mTaskAnimationManager.isRecentsAnimationRunning()) {
|
||||
cmd.mActiveCallbacks = mTaskAnimationManager.continueRecentsAnimation(gestureState);
|
||||
cmd.mActiveCallbacks.addListener(interactionHandler);
|
||||
|
||||
Reference in New Issue
Block a user