[Telephony] remove the RuntimeException thrown

Bug: 196880723
Test: ATP apct/device_boot_health_check_extra
      TMUS-Repeated test to unregistermmtel after registration.
          Volte dials/disconnects, airplane mode on/off,
          Sim removed, power on/off

Merged-In: I050d4affd403604bdae21ef3bc7f9ddf93ffa9e4
Change-Id: I16ebfe7edb13e950afd835d64691d740b11cbcdc
This commit is contained in:
donaldahn
2022-03-02 03:39:22 +00:00
parent 012ace16da
commit b347e47aa6

View File

@@ -618,9 +618,9 @@ public class ImsMmTelManager implements RegistrationManager {
ITelephony iTelephony = getITelephony();
if (iTelephony == null) {
throw new RuntimeException("Could not find Telephony Service.");
Log.w("ImsMmTelManager", "Could not find Telephony Service.");
return;
}
try {
iTelephony.unregisterMmTelCapabilityCallback(mSubId, c.getBinder());
} catch (RemoteException e) {