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

Commit 0400b8d4 authored by Miranda Kephart's avatar Miranda Kephart Committed by Android (Google) Code Review
Browse files

Merge "Call back with null AssistContent if request fails" into 24D1-dev

parents 0b098045 c9cc0712
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -89,9 +89,12 @@ public class AssistContentRequester {
        // ActivityTaskManager interaction here is synchronous, so call off the main thread.
        mSystemInteractionExecutor.execute(() -> {
            try {
                mActivityTaskManager.requestAssistDataForTask(
                boolean success = mActivityTaskManager.requestAssistDataForTask(
                        new AssistDataReceiver(callback, this), taskId, mPackageName,
                        mAttributionTag);
                if (!success) {
                    callback.onAssistContentAvailable(null);
                }
            } catch (RemoteException e) {
                Log.e(TAG, "Requesting assist content failed for task: " + taskId, e);
            }