pull/2135/head
kunfei 2 years ago
parent f237c5dc37
commit 07286ee424
  1. 2
      app/src/main/java/io/legado/app/receiver/NetworkChangedListener.kt

@ -1,5 +1,6 @@
package io.legado.app.receiver package io.legado.app.receiver
import android.annotation.SuppressLint
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@ -34,6 +35,7 @@ class NetworkChangedListener(private val context: Context) {
return@lazy null return@lazy null
} }
@SuppressLint("MissingPermission")
fun register() { fun register() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
networkCallback?.let { networkCallback?.let {

Loading…
Cancel
Save