|
@@ -203,7 +203,7 @@ class SettingsBackupController : SettingsController() {
|
|
}
|
|
}
|
|
CODE_BACKUP_RESTORE -> {
|
|
CODE_BACKUP_RESTORE -> {
|
|
uri?.path?.let {
|
|
uri?.path?.let {
|
|
- val fileName = DocumentFile.fromSingleUri(activity, uri)!!.name!!
|
|
|
|
|
|
+ val fileName = DocumentFile.fromSingleUri(activity, uri)?.name ?: uri.toString()
|
|
when {
|
|
when {
|
|
fileName.endsWith(".proto.gz") -> {
|
|
fileName.endsWith(".proto.gz") -> {
|
|
val options = arrayOf(
|
|
val options = arrayOf(
|