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

Commit c03de65a authored by Santos Cordon's avatar Santos Cordon Committed by Android (Google) Code Review
Browse files

Merge "Dont use isPotentialEmergency for our emergency logic." into mnc-dev

parents 4c0050a0 971e3290
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -28,8 +28,6 @@ import android.telephony.PhoneNumberUtils;
 * differently from 3rd party services in some situations (emergency calls, audio focus, etc...).
 */
public final class TelephonyUtil {
    private static final String TAG = TelephonyUtil.class.getSimpleName();

    private static final String TELEPHONY_PACKAGE_NAME = "com.android.phone";

    private static final String PSTN_CALL_SERVICE_CLASS_NAME =
@@ -63,7 +61,7 @@ public final class TelephonyUtil {
    }

    public static boolean shouldProcessAsEmergency(Context context, Uri handle) {
        return handle != null && PhoneNumberUtils.isPotentialLocalEmergencyNumber(
        return handle != null && PhoneNumberUtils.isLocalEmergencyNumber(
                context, handle.getSchemeSpecificPart());
    }
}