diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index 98caa5b44..580d2359f 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -16,7 +16,6 @@ import io.legado.app.lib.theme.ThemeStore import io.legado.app.utils.getCompatColor import io.legado.app.utils.getPrefBoolean import io.legado.app.utils.getPrefInt -import java.util.* @Suppress("DEPRECATION") class App : Application() { @@ -125,7 +124,7 @@ class App : Application() { webChannel.setSound(null, null) //向notification manager 提交channel - it.createNotificationChannels(Arrays.asList(downloadChannel, readAloudChannel, webChannel)) + it.createNotificationChannels(listOf(downloadChannel, readAloudChannel, webChannel)) } } }