Skip to content

Commit

Permalink
Fix missing .json file extension when exporting messages
Browse files Browse the repository at this point in the history
Very similar to FossifyOrg/Notes#14 (which has a more detailed commit
message). Basically, some file pickers don't automatically append the
extension, so we should do it ourselves. It doesn't cause problems.

Reported in #88.
  • Loading branch information
tom93 committed May 20, 2024
1 parent 1c7376c commit 7e2202b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class SettingsActivity : SimpleActivity() {
private fun setupMessagesExport() {
binding.settingsExportMessagesHolder.setOnClickListener {
ExportMessagesDialog(this) { fileName ->
saveDocument.launch(fileName)
saveDocument.launch("$fileName.json")
}
}
}
Expand Down

0 comments on commit 7e2202b

Please sign in to comment.