Change Export All to a txt file. (#2566)

This commit is contained in:
DaneEvans
2025-07-30 11:26:29 +10:00
committed by GitHub
parent 78b38f8e1c
commit 2d65e1c954

View File

@@ -624,7 +624,7 @@ fun DebugMenuActions(viewModel: DebugViewModel = hiltViewModel(), modifier: Modi
private suspend fun exportAllLogs(context: Context, logs: List<UiMeshLog>) = withContext(Dispatchers.IO) {
try {
val timestamp = SimpleDateFormat("yyyyMMdd_HHmmss", Locale.US).format(Date())
val fileName = "meshtastic_debug_$timestamp.log"
val fileName = "meshtastic_debug_$timestamp.txt"
// Get the Downloads directory
val downloadsDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)