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

Commit 1c47867d authored by Aleksandar Kiridžić's avatar Aleksandar Kiridžić Committed by Automerger Merge Worker
Browse files

Merge "speech: Null-check service connection before usage" into udc-dev am: 671d962a

parents 330a3723 671d962a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -812,7 +812,7 @@ public class SpeechRecognizer {
            Intent recognizerIntent,
            Intent recognizerIntent,
            Executor callbackExecutor,
            Executor callbackExecutor,
            RecognitionSupportCallback recognitionSupportCallback) {
            RecognitionSupportCallback recognitionSupportCallback) {
        if (!maybeInitializeManagerService()) {
        if (!maybeInitializeManagerService() || !checkOpenConnection()) {
            return;
            return;
        }
        }
        try {
        try {
@@ -831,7 +831,7 @@ public class SpeechRecognizer {
            Intent recognizerIntent,
            Intent recognizerIntent,
            @Nullable Executor callbackExecutor,
            @Nullable Executor callbackExecutor,
            @Nullable ModelDownloadListener modelDownloadListener) {
            @Nullable ModelDownloadListener modelDownloadListener) {
        if (!maybeInitializeManagerService()) {
        if (!maybeInitializeManagerService() || !checkOpenConnection()) {
            return;
            return;
        }
        }