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

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

Merge "[Telephony] remove the RuntimeException thrown" am: 841bcc5b

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

Change-Id: Icf8608fffcb767382007635af9cfb2a202b1d8b0
parents 6c4b32c7 841bcc5b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -618,9 +618,9 @@ public class ImsMmTelManager implements RegistrationManager {


        ITelephony iTelephony = getITelephony();
        ITelephony iTelephony = getITelephony();
        if (iTelephony == null) {
        if (iTelephony == null) {
            throw new RuntimeException("Could not find Telephony Service.");
            Log.w("ImsMmTelManager", "Could not find Telephony Service.");
            return;
        }
        }

        try {
        try {
            iTelephony.unregisterMmTelCapabilityCallback(mSubId, c.getBinder());
            iTelephony.unregisterMmTelCapabilityCallback(mSubId, c.getBinder());
        } catch (RemoteException e) {
        } catch (RemoteException e) {