diff --git a/app/src/main/java/io/legado/app/help/http/cronet/CronetUrlRequestCallback.kt b/app/src/main/java/io/legado/app/help/http/cronet/CronetUrlRequestCallback.kt index 41f6fab98..9517f6e66 100644 --- a/app/src/main/java/io/legado/app/help/http/cronet/CronetUrlRequestCallback.kt +++ b/app/src/main/java/io/legado/app/help/http/cronet/CronetUrlRequestCallback.kt @@ -147,7 +147,6 @@ class CronetUrlRequestCallback @JvmOverloads internal constructor( private const val TAG = "Callback" private const val MAX_FOLLOW_COUNT = 20 - @Suppress("DEPRECATION") private fun protocolFromNegotiatedProtocol(responseInfo: UrlResponseInfo): Protocol { val negotiatedProtocol = responseInfo.negotiatedProtocol.lowercase(Locale.getDefault()) // Log.e("Cronet", responseInfo.url) @@ -160,6 +159,7 @@ class CronetUrlRequestCallback @JvmOverloads internal constructor( Protocol.QUIC } negotiatedProtocol.contains("spdy") -> { + @Suppress("DEPRECATION") Protocol.SPDY_3 } negotiatedProtocol.contains("h2") -> { diff --git a/app/src/main/java/io/legado/app/ui/dict/DictDialog.kt b/app/src/main/java/io/legado/app/ui/dict/DictDialog.kt index 78c093ba4..68993a416 100644 --- a/app/src/main/java/io/legado/app/ui/dict/DictDialog.kt +++ b/app/src/main/java/io/legado/app/ui/dict/DictDialog.kt @@ -63,6 +63,7 @@ class DictDialog : BaseDialogFragment() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { binding.tvDict.text = Html.fromHtml(it, Html.FROM_HTML_MODE_LEGACY) } else { + @Suppress("DEPRECATION") binding.tvDict.text = Html.fromHtml(it) } }