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

Commit fee1f36a authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Properly catch ServiceSpecificException if IMS isn't available

Fixes: 147815387
Test: boot device and ensure UCE registers correctly.
Change-Id: I4033659acb0031e2383ebcff55c1bb0798041abd
parent 9f183ebe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.annotation.TestApi;
import android.annotation.WorkerThread;
import android.os.Binder;
import android.os.RemoteException;
import android.os.ServiceSpecificException;
import android.telephony.CarrierConfigManager;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyFrameworkInitializer;
@@ -383,6 +384,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);
        }