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

Commit 0ae06a67 authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Automerger Merge Worker
Browse files

Merge "Fix bug in registering death listener" into rvc-dev am: bff8230a am:...

Merge "Fix bug in registering death listener" into rvc-dev am: bff8230a am: b2cd9f9a am: 9086fa79

Change-Id: I50c80f973babdf723f2b305c47bc252f41da310c
parents 401eb917 9086fa79
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();