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

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

am e444b911: am 5b02e931: Notify VIS of shutdown before switching implementations

* commit 'e444b91104d8b9a0d5de63d7523e6aeb5e2a73fa':
  Notify VIS of shutdown before switching implementations
parents 727c7006 b15fe22a
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;