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

Commit ad47a7d0 authored by Sungcheol Ahn's avatar Sungcheol Ahn Committed by Automerger Merge Worker
Browse files

Merge "[Telephony] checking if the delegate is null before calling." am:...

Merge "[Telephony] checking if the delegate is null before calling." am: 04d04ca8 am: 548c9b5e am: 218437e9 am: 99fb676c

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2015035

Change-Id: I0091dc17e39443e2e3137f4858c18bde46645b52
parents 19c98ed9 99fb676c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -48,6 +48,9 @@ public class SipDelegateAidlWrapper implements DelegateStateCallback, DelegateMe
        @Override
        public void sendMessage(SipMessage sipMessage, long configVersion) {
            SipDelegate d = mDelegate;
            if (d == null) {
                return;
            }
            final long token = Binder.clearCallingIdentity();
            try {
                mExecutor.execute(() -> d.sendMessage(sipMessage, configVersion));
@@ -59,6 +62,9 @@ public class SipDelegateAidlWrapper implements DelegateStateCallback, DelegateMe
        @Override
        public void notifyMessageReceived(String viaTransactionId)  {
            SipDelegate d = mDelegate;
            if (d == null) {
                return;
            }
            final long token = Binder.clearCallingIdentity();
            try {
                mExecutor.execute(() -> d.notifyMessageReceived(viaTransactionId));
@@ -71,6 +77,9 @@ public class SipDelegateAidlWrapper implements DelegateStateCallback, DelegateMe
        @Override
        public void notifyMessageReceiveError(String viaTransactionId, int reason) {
            SipDelegate d = mDelegate;
            if (d == null) {
                return;
            }
            final long token = Binder.clearCallingIdentity();
            try {
                mExecutor.execute(() -> d.notifyMessageReceiveError(viaTransactionId, reason));
@@ -83,6 +92,9 @@ public class SipDelegateAidlWrapper implements DelegateStateCallback, DelegateMe
        @Override
        public void cleanupSession(String callId)  {
            SipDelegate d = mDelegate;
            if (d == null) {
                return;
            }
            final long token = Binder.clearCallingIdentity();
            try {
                mExecutor.execute(() -> d.cleanupSession(callId));