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

Commit 225b5fc8 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Properly catch ServiceSpecificException if IMS isn't available" am:...

Merge "Properly catch ServiceSpecificException if IMS isn't available" am: ba0576ee am: a2183240

Change-Id: I7b61a3780b81fcc112ed3599a486b64258f47ed1
parents a4ba1c1a a2183240
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.content.Context;
import android.os.Binder;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.ServiceSpecificException;
import android.telephony.CarrierConfigManager;
import android.telephony.SubscriptionManager;
import android.telephony.ims.aidl.IImsConfigCallback;
@@ -377,6 +378,8 @@ public class ProvisioningManager {
        callback.setExecutor(executor);
        try {
            getITelephony().registerImsProvisioningChangedCallback(mSubId, callback.getBinder());
        } catch (ServiceSpecificException e) {
            throw new ImsException(e.getMessage(), e.errorCode);
        } catch (RemoteException | IllegalStateException e) {
            throw new ImsException(e.getMessage(), ImsException.CODE_ERROR_SERVICE_UNAVAILABLE);
        }