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

Commit 9968e958 authored by Miranda Kephart's avatar Miranda Kephart Committed by Automerger Merge Worker
Browse files

Merge "Call back with null AssistContent if request fails" into 24D1-dev am: 0400b8d4

parents 487ba500 0400b8d4
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);
            }