mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Fixed detekt and codefactore issues
This commit is contained in:
parent
f34d46cc7b
commit
c669207c46
@ -42,6 +42,7 @@ import org.kiwix.kiwixmobile.BuildConfig.DEBUG
|
||||
import org.kiwix.kiwixmobile.core.R
|
||||
import org.kiwix.kiwixmobile.core.StorageObserver
|
||||
import org.kiwix.kiwixmobile.core.base.SideEffect
|
||||
import org.kiwix.kiwixmobile.core.compat.CompatHelper.Companion.convertToLocal
|
||||
import org.kiwix.kiwixmobile.core.compat.CompatHelper.Companion.isWifi
|
||||
import org.kiwix.kiwixmobile.core.dao.DownloadRoomDao
|
||||
import org.kiwix.kiwixmobile.core.dao.NewBookDao
|
||||
@ -475,7 +476,7 @@ class ZimManageViewModel @Inject constructor(
|
||||
networkLanguageCounts: MutableMap<String, Int>,
|
||||
listToActivateBy: List<Language>
|
||||
) = Locale.getISOLanguages()
|
||||
.map(::Locale)
|
||||
.map { it.convertToLocal() }
|
||||
.filter { networkLanguageCounts.containsKey(it.isO3Language) }
|
||||
.map { locale ->
|
||||
Language(
|
||||
|
@ -162,7 +162,7 @@ class AllProjectConfigurer {
|
||||
add("UnusedResources")
|
||||
add("NonConstantResourceId")
|
||||
add("NotifyDataSetChanged")
|
||||
add("Aligned16KB") // TODO: Remove when properly migrated to Android 16.
|
||||
add("Aligned16KB") // TODO Remove when properly migrated to Android 16.
|
||||
}
|
||||
lintConfig = target.rootProject.file("lintConfig.xml")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user