mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Improved the importing bookmark feature.
This commit is contained in:
parent
dc53139d84
commit
f78e1447a6
@ -41,8 +41,6 @@ import androidx.preference.Preference
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
import com.google.android.material.snackbar.Snackbar
|
||||
import eu.mhutti1.utils.storage.StorageDevice
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import org.kiwix.kiwixmobile.core.CoreApp.Companion.coreComponent
|
||||
import org.kiwix.kiwixmobile.core.CoreApp.Companion.instance
|
||||
@ -413,7 +411,7 @@ abstract class CorePrefsFragment :
|
||||
|
||||
createTempFile(contentResolver.openInputStream(uri)).apply {
|
||||
if (isValidXmlFile(this)) {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
lifecycleScope.launch {
|
||||
libkiwixBookmarks?.importBookmarks(this@apply)
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user