Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54fc5e0e authored by Alex Chau's avatar Alex Chau
Browse files

Improve Task launch logging and function naming

Fix: 360186814
Test: manual
Flag: EXEMPT REFACTOR
Change-Id: I22c5a08382800941f0dd8f64f6129438ac04edaa
parent 9c1fd149
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1431,7 +1431,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
                                && !(foundTaskView instanceof DesktopTaskView)) {
                            TestLogging.recordEvent(
                                    TestProtocol.SEQUENCE_MAIN, "start: taskbarAppIcon");
                            foundTaskView.launchTasks();
                            foundTaskView.launchWithAnimation();
                            return;
                        }
                    }
+1 −1
Original line number Diff line number Diff line
@@ -610,7 +610,7 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
                                        .append(" is missing."),
                                QUICK_SWITCH_FROM_HOME_FALLBACK);
                    }
                    taskToLaunch.launchTask(success -> {
                    taskToLaunch.launchWithoutAnimation(success -> {
                        if (!success) {
                            getStateManager().goToState(OVERVIEW);
                        } else {
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ public class OverviewState extends LauncherState {
        TaskView taskView = recentsView.getRunningTaskView();
        if (taskView != null) {
            if (recentsView.isTaskViewFullyVisible(taskView)) {
                taskView.launchTasks();
                taskView.launchWithAnimation();
            } else {
                recentsView.snapToPage(recentsView.indexOfChild(taskView));
            }
+2 −2
Original line number Diff line number Diff line
@@ -2370,7 +2370,7 @@ public abstract class AbsSwipeUpHandler<
                    ActiveGestureLog.INSTANCE.trackEvent(EXPECTING_TASK_APPEARED);
                }
                ActiveGestureLog.INSTANCE.addLog(nextTaskLog);
                nextTask.launchTask(success -> {
                nextTask.launchWithoutAnimation(true, success -> {
                    resultCallback.accept(success);
                    if (success) {
                        if (hasTaskPreviouslyAppeared) {
@@ -2383,7 +2383,7 @@ public abstract class AbsSwipeUpHandler<
                        }
                    }
                    return Unit.INSTANCE;
                }, true /* freezeTaskList */);
                }  /* freezeTaskList */);
            } else {
                mContainerInterface.onLaunchTaskFailed();
                Toast.makeText(mContext, R.string.activity_not_available, LENGTH_SHORT).show();
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ class OverviewCommandHelper(
        if (taskView != null) {
            waitForToggleCommandComplete = true
            taskView.isEndQuickSwitchCuj = true
            callbackList = taskView.launchTasks()
            callbackList = taskView.launchWithAnimation()
        }

        if (callbackList != null) {
Loading