Maybe make opening file picker for choosing backup file more reliable
(cherry picked from commit a01792ac9a71689ef5d13a7ab4e71d7a97966062)
This commit is contained in:
parent
438f64a358
commit
ac654340d8
@ -1002,8 +1002,9 @@ class MangaController :
|
|||||||
|
|
||||||
override fun openMangaCoverPicker(manga: Manga) {
|
override fun openMangaCoverPicker(manga: Manga) {
|
||||||
if (manga.favorite) {
|
if (manga.favorite) {
|
||||||
val intent = Intent(Intent.ACTION_GET_CONTENT)
|
val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
|
||||||
intent.type = "image/*"
|
type = "image/*"
|
||||||
|
}
|
||||||
startActivityForResult(
|
startActivityForResult(
|
||||||
Intent.createChooser(
|
Intent.createChooser(
|
||||||
intent,
|
intent,
|
||||||
|
@ -82,9 +82,10 @@ class SettingsBackupController : SettingsController() {
|
|||||||
|
|
||||||
onClick {
|
onClick {
|
||||||
if (!BackupRestoreService.isRunning(context)) {
|
if (!BackupRestoreService.isRunning(context)) {
|
||||||
val intent = Intent(Intent.ACTION_GET_CONTENT)
|
val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
|
||||||
intent.addCategory(Intent.CATEGORY_OPENABLE)
|
addCategory(Intent.CATEGORY_OPENABLE)
|
||||||
intent.type = "application/*"
|
type = "*/*"
|
||||||
|
}
|
||||||
val title = resources?.getString(R.string.file_select_backup)
|
val title = resources?.getString(R.string.file_select_backup)
|
||||||
val chooser = Intent.createChooser(intent, title)
|
val chooser = Intent.createChooser(intent, title)
|
||||||
startActivityForResult(chooser, CODE_BACKUP_RESTORE)
|
startActivityForResult(chooser, CODE_BACKUP_RESTORE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user