mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 11:47:48 +01:00
Try to avoid crashing when unable to get backup filename for some reason
This commit is contained in:
parent
b92b6520cb
commit
be3e31ddc4
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ class SettingsBackupController : SettingsController() {
|
|||
}
|
||||
CODE_BACKUP_RESTORE -> {
|
||||
uri?.path?.let {
|
||||
val fileName = DocumentFile.fromSingleUri(activity, uri)!!.name!!
|
||||
val fileName = DocumentFile.fromSingleUri(activity, uri)?.name ?: uri.toString()
|
||||
when {
|
||||
fileName.endsWith(".proto.gz") -> {
|
||||
val options = arrayOf(
|
||||
|
|
Loading…
Reference in a new issue