Merge pull request #7642 from thunderbird/export_log_mime_type

Explicitly specify MIME type when exporting debug log
This commit is contained in:
cketti 2024-02-15 12:37:10 +01:00 committed by GitHub
commit c30d97e7c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ class GeneralSettingsFragment : PreferenceFragmentCompat() {
private var currentUiState: GeneralSettingsUiState? = null
private var snackbar: Snackbar? = null
private val exportLogsResultContract = registerForActivityResult(CreateDocument()) { contentUri ->
private val exportLogsResultContract = registerForActivityResult(CreateDocument("text/plain")) { contentUri ->
if (contentUri != null) {
viewModel.exportLogs(contentUri)
}