X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyCell.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacycell%2Fhelpers%2FProtocolHelper.kt;fp=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacycell%2Fhelpers%2FProtocolHelper.kt;h=cb6ca1db880210aa4f7712b5bea247ac653009ca;hp=11407f7517d0e9e87941876f5597c0c20b8ec50d;hb=cabc84a43df2a418f7a9e82fd04fa2bebc7f6826;hpb=70e85c4e9c81fcceb0524c9db3cf781209852a8c diff --git a/app/src/main/java/com/stoutner/privacycell/helpers/ProtocolHelper.kt b/app/src/main/java/com/stoutner/privacycell/helpers/ProtocolHelper.kt index 11407f7..cb6ca1d 100644 --- a/app/src/main/java/com/stoutner/privacycell/helpers/ProtocolHelper.kt +++ b/app/src/main/java/com/stoutner/privacycell/helpers/ProtocolHelper.kt @@ -1,5 +1,5 @@ /* - * Copyright 2022 Soren Stoutner . + * Copyright 2022-2023 Soren Stoutner . * * This file is part of Privacy Cell . * @@ -84,7 +84,8 @@ class ProtocolHelper { } fun getNetworkTypeStringArray(networkType: Int, context: Context) : Array { - // Return the string array that corresponds to the network type. + // Return the string array that corresponds to the network type. The deprecated `NETWORK_TYPE_IDEN` can be removed once the minimum API >= 34. + @Suppress("DEPRECATION") return when(networkType) { TelephonyManager.NETWORK_TYPE_UNKNOWN -> arrayOf(context.getString(R.string.unknown), "") TelephonyManager.NETWORK_TYPE_GPRS -> arrayOf(context.getString(R.string.gprs), context.getString(R.string.gprs_detail))