diff options
Diffstat (limited to 'java/com/android/dialer/util')
-rw-r--r-- | java/com/android/dialer/util/DialerUtils.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/com/android/dialer/util/DialerUtils.java b/java/com/android/dialer/util/DialerUtils.java index 7f7b9da74..49a07334f 100644 --- a/java/com/android/dialer/util/DialerUtils.java +++ b/java/com/android/dialer/util/DialerUtils.java @@ -15,6 +15,7 @@ */ package com.android.dialer.util; +import android.annotation.SuppressLint; import android.app.AlertDialog; import android.content.ActivityNotFoundException; import android.content.Context; @@ -22,8 +23,6 @@ import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.graphics.Point; -import android.os.Build.VERSION; -import android.os.Build.VERSION_CODES; import android.os.Bundle; import android.telecom.TelecomManager; import android.telephony.TelephonyManager; @@ -131,12 +130,12 @@ public class DialerUtils { * currently active call over LTE. Regardless of the country or carrier, the radio will drop an * active LTE call if a WPS number is dialed, so this warning is necessary. */ + @SuppressLint("MissingPermission") private static boolean shouldWarnForOutgoingWps(Context context, String number) { if (number != null && number.startsWith(WPS_PREFIX)) { TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); boolean isOnVolte = - VERSION.SDK_INT >= VERSION_CODES.N - && telephonyManager.getVoiceNetworkType() == TelephonyManager.NETWORK_TYPE_LTE; + telephonyManager.getVoiceNetworkType() == TelephonyManager.NETWORK_TYPE_LTE; boolean hasCurrentActiveCall = telephonyManager.getCallState() == TelephonyManager.CALL_STATE_OFFHOOK; return isOnVolte && hasCurrentActiveCall; |