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

Commit efb3f09c authored by Paul Keith's avatar Paul Keith
Browse files

GsmCdmaPhone: Fallback to PhoneNumberUtils if telephony-ext fails

* Fixes emergency calls when SIM card isn't present

Change-Id: If6dfb4468b4a26abbe6e0e5a687b7fb44a70f369
parent b2318153
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3471,8 +3471,10 @@ public class GsmCdmaPhone extends Phone {
            result = mIExtTelephony.isEmergencyNumber(address);
        } catch (RemoteException ex) {
            loge("RemoteException" + ex);
            result = PhoneNumberUtils.isEmergencyNumber(address);
        } catch (NullPointerException ex) {
            loge("NullPointerException" + ex);
            result = PhoneNumberUtils.isEmergencyNumber(address);
        }
        return result;
    }