diff --git a/quickstep/src/com/android/quickstep/views/TaskView.kt b/quickstep/src/com/android/quickstep/views/TaskView.kt index 05b79cc925..04c29cc788 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.kt +++ b/quickstep/src/com/android/quickstep/views/TaskView.kt @@ -1511,6 +1511,10 @@ constructor( isQuickSwitch: Boolean = false, callback: (launched: Boolean) -> Unit, ) { + val callbackWithLogging = { launchSuccess: Boolean -> + Log.d(TAG, "launchWithoutAnimation - callback: launchSuccess: $launchSuccess") + callback(launchSuccess) + } val firstTaskContainer = firstTaskContainer ?: return TestLogging.recordEvent( TestProtocol.SEQUENCE_MAIN, @@ -1545,8 +1549,9 @@ constructor( 0, 0, Executors.MAIN_EXECUTOR.handler, - { callback(true) }, + { callbackWithLogging(true) }, ) { + Log.d(TAG, "launchWithoutAnimation: launch animation finished") failureListener.onTransitionFinished() } .apply { @@ -1558,22 +1563,24 @@ constructor( disableStartingWindow = firstTaskContainer.shouldShowSplashView } Executors.UI_HELPER_EXECUTOR.execute { + Log.d( + TAG, + "launchWithoutAnimation(isQuickSwitch: $isQuickSwitch) - " + + "startActivityFromRecents: ${taskIds.contentToString()}", + ) if ( !ActivityManagerWrapper.getInstance() .startActivityFromRecents(firstTaskContainer.task.key, opts) ) { + Log.d(TAG, "launchWithoutAnimation - task launch failed") // If the call to start activity failed, then post the result immediately, // otherwise, wait for the animation start callback from the activity options // above Executors.MAIN_EXECUTOR.post { notifyTaskLaunchFailed("launchTask") - callback(false) + callbackWithLogging(false) } } - Log.d( - TAG, - "launchWithoutAnimation - startActivityFromRecents: ${taskIds.contentToString()}", - ) } }