chore: Tackle some more compile warnings

This commit is contained in:
Ahmad Ansori Palembani 2024-05-26 07:37:01 +07:00
parent 2328fe58fa
commit e51dce6ccd
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -32,6 +32,7 @@ import eu.kanade.tachiyomi.util.lang.chop
import eu.kanade.tachiyomi.util.system.notification
import eu.kanade.tachiyomi.util.system.notificationBuilder
import eu.kanade.tachiyomi.util.system.notificationManager
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import uy.kohesive.injekt.injectLazy
@ -169,6 +170,7 @@ class LibraryUpdateNotifier(private val context: Context) {
*
* @param updates a list of manga with new updates.
*/
@OptIn(DelicateCoroutinesApi::class)
fun showResultNotification(newUpdates: Map<LibraryManga, Array<Chapter>>) {
// create a copy of the list since it will be cleared by the time it is used
val updates = newUpdates.toMap()