From 07286ee424433100cb91de4e4edd4810aecd8739 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 5 Aug 2022 22:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/receiver/NetworkChangedListener.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/receiver/NetworkChangedListener.kt b/app/src/main/java/io/legado/app/receiver/NetworkChangedListener.kt index 12de57e90..b3e9af33d 100644 --- a/app/src/main/java/io/legado/app/receiver/NetworkChangedListener.kt +++ b/app/src/main/java/io/legado/app/receiver/NetworkChangedListener.kt @@ -1,5 +1,6 @@ package io.legado.app.receiver +import android.annotation.SuppressLint import android.content.BroadcastReceiver import android.content.Context import android.content.Intent @@ -34,6 +35,7 @@ class NetworkChangedListener(private val context: Context) { return@lazy null } + @SuppressLint("MissingPermission") fun register() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { networkCallback?.let {