Fix warnings and enable locales-config auto-generating

This commit is contained in:
Koitharu
2023-08-09 16:17:59 +03:00
parent edb91c46d4
commit c874d73c04
27 changed files with 35 additions and 257 deletions

View File

@@ -17,7 +17,6 @@ import org.koitharu.kotatsu.core.prefs.AppSettings
import org.koitharu.kotatsu.core.util.ext.computeSize
import org.koitharu.kotatsu.core.util.ext.getStorageName
import org.koitharu.kotatsu.core.util.ext.resolveFile
import org.koitharu.kotatsu.core.util.ext.toFileOrNull
import org.koitharu.kotatsu.parsers.util.mapToSet
import java.io.File
import javax.inject.Inject

View File

@@ -4,7 +4,6 @@ import androidx.core.net.toFile
import androidx.core.net.toUri
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runInterruptible
import org.koitharu.kotatsu.local.data.MangaIndex
import org.koitharu.kotatsu.parsers.model.Manga
import org.koitharu.kotatsu.parsers.model.MangaSource

View File

@@ -46,8 +46,10 @@ class ImportWorker @AssistedInject constructor(
val result = runCatchingCancellable {
importer.import(uri).manga
}
val notification = buildNotification(result)
notificationManager.notify(uri.hashCode(), notification)
if (notificationManager.areNotificationsEnabled()) {
val notification = buildNotification(result)
notificationManager.notify(uri.hashCode(), notification)
}
return Result.success()
}