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

Commit 130f9a14 authored by Bjorn Bringert's avatar Bjorn Bringert Committed by The Android Automerger
Browse files

Find new recognizer if old one is gone

Before, RecognitionManagerService just cleared the recognizer
setting, which the Settings app really doesn't like.

Bug: 6332933
Change-Id: If4f9b583c304c5ea99021dddda50fca55e3ac541
parent 382fa051
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -75,7 +75,10 @@ public class RecognitionManagerService extends Binder {
            try {
                mContext.getPackageManager().getServiceInfo(comp, 0);
            } catch (NameNotFoundException e) {
                setCurRecognizer(null);
                comp = findAvailRecognizer(null);
                if (comp != null) {
                    setCurRecognizer(comp);
                }
            }
        } else {
            comp = findAvailRecognizer(null);