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

Commit 327c3641 authored by James Cook's avatar James Cook Committed by Android (Google) Code Review
Browse files

Merge "Cancel voice assist session on user switch" into mnc-dev

parents f981ea95 496767c1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -248,6 +248,12 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne
    }

    void shutdownLocked() {
        // If there is an active session, cancel it to allow it to clean up its window and other
        // state.
        if (mActiveSession != null) {
            mActiveSession.cancel();
            mActiveSession = null;
        }
        try {
            if (mService != null) {
                mService.shutdown();