Loading quickstep/src/com/android/quickstep/views/RecentsView.java +13 −7 Original line number Original line Diff line number Diff line Loading @@ -2372,13 +2372,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T if (success) { if (success) { if (shouldRemoveTask) { if (shouldRemoveTask) { if (taskView.getTask() != null) { if (taskView.getTask() != null) { if (LIVE_TILE.get() && taskView.isRunningTask()) { finishRecentsAnimation(true /* toRecents */, false /* shouldPip */, finishRecentsAnimation(true /* toRecents */, false /* shouldPip */, () -> { () -> removeTaskInternal(taskView)); UI_HELPER_EXECUTOR.getHandler().postDelayed(() -> } else { ActivityManagerWrapper.getInstance().removeTask( removeTaskInternal(taskView); taskView.getTask().key.id), } REMOVE_TASK_WAIT_FOR_APP_STOP_MS); }); mActivity.getStatsLogManager().logger() mActivity.getStatsLogManager().logger() .withItemInfo(taskView.getItemInfo()) .withItemInfo(taskView.getItemInfo()) .log(LAUNCHER_TASK_DISMISS_SWIPE_UP); .log(LAUNCHER_TASK_DISMISS_SWIPE_UP); Loading Loading @@ -2424,6 +2423,13 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T return anim; return anim; } } private void removeTaskInternal(TaskView taskView) { UI_HELPER_EXECUTOR.getHandler().postDelayed(() -> ActivityManagerWrapper.getInstance().removeTask( taskView.getTask().key.id), REMOVE_TASK_WAIT_FOR_APP_STOP_MS); } /** /** * @return {@code true} if one of the task thumbnails would intersect/overlap with the * @return {@code true} if one of the task thumbnails would intersect/overlap with the * {@link #mSplitPlaceholderView} * {@link #mSplitPlaceholderView} Loading Loading
quickstep/src/com/android/quickstep/views/RecentsView.java +13 −7 Original line number Original line Diff line number Diff line Loading @@ -2372,13 +2372,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T if (success) { if (success) { if (shouldRemoveTask) { if (shouldRemoveTask) { if (taskView.getTask() != null) { if (taskView.getTask() != null) { if (LIVE_TILE.get() && taskView.isRunningTask()) { finishRecentsAnimation(true /* toRecents */, false /* shouldPip */, finishRecentsAnimation(true /* toRecents */, false /* shouldPip */, () -> { () -> removeTaskInternal(taskView)); UI_HELPER_EXECUTOR.getHandler().postDelayed(() -> } else { ActivityManagerWrapper.getInstance().removeTask( removeTaskInternal(taskView); taskView.getTask().key.id), } REMOVE_TASK_WAIT_FOR_APP_STOP_MS); }); mActivity.getStatsLogManager().logger() mActivity.getStatsLogManager().logger() .withItemInfo(taskView.getItemInfo()) .withItemInfo(taskView.getItemInfo()) .log(LAUNCHER_TASK_DISMISS_SWIPE_UP); .log(LAUNCHER_TASK_DISMISS_SWIPE_UP); Loading Loading @@ -2424,6 +2423,13 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T return anim; return anim; } } private void removeTaskInternal(TaskView taskView) { UI_HELPER_EXECUTOR.getHandler().postDelayed(() -> ActivityManagerWrapper.getInstance().removeTask( taskView.getTask().key.id), REMOVE_TASK_WAIT_FOR_APP_STOP_MS); } /** /** * @return {@code true} if one of the task thumbnails would intersect/overlap with the * @return {@code true} if one of the task thumbnails would intersect/overlap with the * {@link #mSplitPlaceholderView} * {@link #mSplitPlaceholderView} Loading