mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Screenshot freeform task when going to overview" into tm-qpr-dev
This commit is contained in:
@@ -1892,11 +1892,13 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
}
|
||||
|
||||
private void finishCurrentTransitionToRecents() {
|
||||
if (mRecentsAnimationController != null
|
||||
if (mRecentsView != null
|
||||
&& mActivityInterface.getDesktopVisibilityController() != null
|
||||
&& mActivityInterface.getDesktopVisibilityController().areFreeformTasksVisible()) {
|
||||
mRecentsAnimationController.finish(true /* toRecents */,
|
||||
() -> mStateCallback.setStateOnUiThread(STATE_CURRENT_TASK_FINISHED));
|
||||
mRecentsView.switchToScreenshot(() -> {
|
||||
mRecentsView.finishRecentsAnimation(true /* toRecents */, false /* shouldPip */,
|
||||
() -> mStateCallback.setStateOnUiThread(STATE_CURRENT_TASK_FINISHED));
|
||||
});
|
||||
} else {
|
||||
mStateCallback.setStateOnUiThread(STATE_CURRENT_TASK_FINISHED);
|
||||
if (mRecentsAnimationController != null) {
|
||||
|
||||
Reference in New Issue
Block a user