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

Commit a66700aa authored by Omar Eissa's avatar Omar Eissa Committed by Android (Google) Code Review
Browse files

Merge "Allow resetting the voice recognition service if its package uninstalled" into main

parents a735b1e5 e8d07dd8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2717,10 +2717,11 @@ public class VoiceInteractionManagerService extends SystemService {
                                switchImplementationIfNeededLocked(true);
                            }
                        }
                        return;
                    }

                    if (curAssistant != null) {
                    // If interactor isn't null, then we would have done the needed checks already
                    // in the above code.
                    if (curInteractor == null && curAssistant != null) {
                        int change = isPackageDisappearing(curAssistant.getPackageName());
                        if (change == PACKAGE_PERMANENT_CHANGE) {
                            // If the currently set assistant is being removed, then we should