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

Commit 7aeb79c1 authored by Santos Cordon's avatar Santos Cordon Committed by Android Git Automerger
Browse files

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

* commit 'c03de65a':
  Dont use isPotentialEmergency for our emergency logic.
parents 0f929907 c03de65a
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());
    }
}