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

Commit bff8230a authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Android (Google) Code Review
Browse files

Merge "Fix bug in registering death listener" into rvc-dev

parents 13be2bc4 f0220201
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ public class SoundTriggerMiddlewareValidation implements ISoundTriggerMiddleware
            mCallback = callback;
            mHandle = handle;
            try {
                mCallback.asBinder().linkToDeath(null, 0);
                mCallback.asBinder().linkToDeath(this, 0);
            } catch (RemoteException e) {
                throw e.rethrowAsRuntimeException();
            }
@@ -680,7 +680,7 @@ public class SoundTriggerMiddlewareValidation implements ISoundTriggerMiddleware
            try {
                mDelegate.detach();
                mDelegate = null;
                mCallback.asBinder().unlinkToDeath(null, 0);
                mCallback.asBinder().unlinkToDeath(this, 0);
                mModules.get(mHandle).remove(this);
            } catch (RemoteException e) {
                throw e.rethrowAsRuntimeException();