mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Revert "refactor: clean up deprecations using recommendations" (#2864)
This commit is contained in:
parent
e89bcda299
commit
86c0285f69
8 changed files with 24 additions and 37 deletions
|
|
@ -20,6 +20,7 @@ package com.geeksville.mesh.ui.settings.radio.components
|
|||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.text.KeyboardActions
|
||||
import androidx.compose.material3.Divider
|
||||
import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
|
|
@ -102,7 +103,7 @@ fun AudioConfigItemList(audioConfig: AudioConfig, enabled: Boolean, onSaveClicke
|
|||
onItemSelected = { audioInput = audioInput.copy { bitrate = it } },
|
||||
)
|
||||
}
|
||||
item { HorizontalDivider() }
|
||||
item { Divider() }
|
||||
|
||||
item {
|
||||
EditTextPreference(
|
||||
|
|
|
|||
|
|
@ -54,10 +54,7 @@ fun <T> PacketResponseStateDialog(state: ResponseState<T>, onDismiss: () -> Unit
|
|||
label = "progress",
|
||||
)
|
||||
Text("%.0f%%".format(progress * 100))
|
||||
LinearProgressIndicator(
|
||||
progress = { progress },
|
||||
modifier = Modifier.fillMaxWidth().padding(top = 8.dp),
|
||||
)
|
||||
LinearProgressIndicator(progress = progress, modifier = Modifier.fillMaxWidth().padding(top = 8.dp))
|
||||
if (state.total == state.completed) onComplete()
|
||||
}
|
||||
if (state is ResponseState.Success) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue