mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(datetime): Standardize date/time formatting with DateUtils (#4164)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
1422217303
commit
02cf1f1034
15 changed files with 131 additions and 136 deletions
|
|
@ -87,11 +87,14 @@ import org.meshtastic.core.strings.Res
|
|||
import org.meshtastic.core.strings.debug_clear
|
||||
import org.meshtastic.core.strings.debug_clear_logs_confirm
|
||||
import org.meshtastic.core.strings.debug_decoded_payload
|
||||
import org.meshtastic.core.strings.debug_default_search
|
||||
import org.meshtastic.core.strings.debug_export_failed
|
||||
import org.meshtastic.core.strings.debug_export_success
|
||||
import org.meshtastic.core.strings.debug_filters
|
||||
import org.meshtastic.core.strings.debug_logs_export
|
||||
import org.meshtastic.core.strings.debug_panel
|
||||
import org.meshtastic.core.strings.debug_store_logs_summary
|
||||
import org.meshtastic.core.strings.debug_store_logs_title
|
||||
import org.meshtastic.core.strings.log_retention_days
|
||||
import org.meshtastic.core.strings.log_retention_days_quantity
|
||||
import org.meshtastic.core.strings.log_retention_days_summary
|
||||
|
|
@ -250,11 +253,11 @@ private fun DebugLogSettings(viewModel: DebugViewModel) {
|
|||
)
|
||||
|
||||
SwitchPreference(
|
||||
title = "Store mesh logs",
|
||||
title = stringResource(Res.string.debug_store_logs_title),
|
||||
enabled = true,
|
||||
checked = loggingEnabled,
|
||||
onCheckedChange = { viewModel.setLoggingEnabled(it) },
|
||||
summary = "Disable to skip writing mesh logs to disk",
|
||||
summary = stringResource(Res.string.debug_store_logs_summary),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -691,7 +694,7 @@ private fun DebugScreenEmptyPreview() {
|
|||
value = "",
|
||||
onValueChange = {},
|
||||
modifier = Modifier.weight(1f).padding(end = 8.dp),
|
||||
placeholder = { Text("Search in logs...") },
|
||||
placeholder = { Text(stringResource(Res.string.debug_default_search)) },
|
||||
singleLine = true,
|
||||
)
|
||||
TextButton(onClick = {}) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Meshtastic LLC
|
||||
* Copyright (c) 2025-2026 Meshtastic LLC
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -14,7 +14,6 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.meshtastic.feature.settings.debugging
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
|
|
@ -59,8 +58,10 @@ import org.jetbrains.compose.resources.stringResource
|
|||
import org.meshtastic.core.strings.Res
|
||||
import org.meshtastic.core.strings.debug_active_filters
|
||||
import org.meshtastic.core.strings.debug_filter_add
|
||||
import org.meshtastic.core.strings.debug_filter_add_custom
|
||||
import org.meshtastic.core.strings.debug_filter_clear
|
||||
import org.meshtastic.core.strings.debug_filter_included
|
||||
import org.meshtastic.core.strings.debug_filter_preset_title
|
||||
import org.meshtastic.core.strings.debug_filters
|
||||
import org.meshtastic.core.strings.match_all
|
||||
import org.meshtastic.core.strings.match_any
|
||||
|
|
@ -79,7 +80,7 @@ fun DebugCustomFilterInput(
|
|||
value = customFilterText,
|
||||
onValueChange = onCustomFilterTextChange,
|
||||
modifier = Modifier.weight(1f),
|
||||
placeholder = { Text("Add custom filter") },
|
||||
placeholder = { Text(stringResource(Res.string.debug_filter_add_custom)) },
|
||||
singleLine = true,
|
||||
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),
|
||||
keyboardActions =
|
||||
|
|
@ -125,7 +126,7 @@ internal fun DebugPresetFilters(
|
|||
}
|
||||
Column(modifier = modifier) {
|
||||
Text(
|
||||
text = "Preset Filters",
|
||||
text = stringResource(Res.string.debug_filter_preset_title),
|
||||
style = TextStyle(fontWeight = FontWeight.Bold),
|
||||
modifier = Modifier.padding(vertical = 4.dp),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue