mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Maybe make opening file picker for choosing backup file more reliable
This commit is contained in:
		| @@ -609,8 +609,9 @@ class MangaController : | ||||
|  | ||||
|     override fun openMangaCoverPicker(manga: Manga) { | ||||
|         if (manga.favorite) { | ||||
|             val intent = Intent(Intent.ACTION_GET_CONTENT) | ||||
|             intent.type = "image/*" | ||||
|             val intent = Intent(Intent.ACTION_GET_CONTENT).apply { | ||||
|                 type = "image/*" | ||||
|             } | ||||
|             startActivityForResult( | ||||
|                 Intent.createChooser( | ||||
|                     intent, | ||||
|   | ||||
| @@ -82,9 +82,10 @@ class SettingsBackupController : SettingsController() { | ||||
|  | ||||
|                 onClick { | ||||
|                     if (!BackupRestoreService.isRunning(context)) { | ||||
|                         val intent = Intent(Intent.ACTION_GET_CONTENT) | ||||
|                         intent.addCategory(Intent.CATEGORY_OPENABLE) | ||||
|                         intent.type = "application/*" | ||||
|                         val intent = Intent(Intent.ACTION_GET_CONTENT).apply { | ||||
|                             addCategory(Intent.CATEGORY_OPENABLE) | ||||
|                             type = "*/*" | ||||
|                         } | ||||
|                         val title = resources?.getString(R.string.file_select_backup) | ||||
|                         val chooser = Intent.createChooser(intent, title) | ||||
|                         startActivityForResult(chooser, CODE_BACKUP_RESTORE) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user