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

Commit b15fe22a authored by Sandeep Siddhartha's avatar Sandeep Siddhartha Committed by Android Git Automerger
Browse files

am 5b02e931: Notify VIS of shutdown before switching implementations

* commit '5b02e931db0e636743613697ace65b046e8607c0':
  Notify VIS of shutdown before switching implementations
parents f208fbc1 8ef360f3
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -96,13 +96,6 @@ class VoiceInteractionManagerServiceImpl {

        @Override
        public void onServiceDisconnected(ComponentName name) {
            try {
                if (mService != null) {
                    mService.shutdown();
                }
            } catch (RemoteException e) {
                Slog.w(TAG, "RemoteException in shutdown", e);
            }
            mService = null;
        }
    };
@@ -307,6 +300,14 @@ class VoiceInteractionManagerServiceImpl {
    }

    void shutdownLocked() {
        try {
            if (mService != null) {
                mService.shutdown();
            }
        } catch (RemoteException e) {
            Slog.w(TAG, "RemoteException in shutdown", e);
        }

        if (mBound) {
            mContext.unbindService(mConnection);
            mBound = false;