Fix/2558 rangetest (#2569)

This commit is contained in:
DaneEvans 2025-07-30 21:50:25 +10:00 committed by GitHub
parent 00898d64be
commit edd40890be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 10 deletions

View file

@ -207,10 +207,10 @@ class MainActivity :
return resultPendingIntent!!
}
private val createDocumentLauncher =
private val createRangetestLauncher =
registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {
if (it.resultCode == RESULT_OK) {
it.data?.data?.let { file_uri -> model.saveMessagesCSV(file_uri) }
it.data?.data?.let { file_uri -> model.saveRangetestCSV(file_uri) }
}
}
@ -264,14 +264,14 @@ class MainActivity :
getVersionInfo()
}
MainMenuAction.EXPORT_MESSAGES -> {
MainMenuAction.EXPORT_RANGETEST -> {
val intent =
Intent(Intent.ACTION_CREATE_DOCUMENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
type = "application/csv"
putExtra(Intent.EXTRA_TITLE, "rangetest.csv")
}
createDocumentLauncher.launch(intent)
createRangetestLauncher.launch(intent)
}
MainMenuAction.THEME -> {