commit 09dda745bad8951ce7cf0f49402c9c6f74cb3513 parent 6eaf67e904afe2e06feb94461c524f963c79ba8e Author: massi <mdsiboldi@gmail.com> Date: Thu, 11 Jul 2024 14:20:47 -0700 button update Diffstat:
M | app/src/main/java/com/example/fretboardtrainer/MainActivity.kt | | | 9 | ++------- |
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/app/src/main/java/com/example/fretboardtrainer/MainActivity.kt b/app/src/main/java/com/example/fretboardtrainer/MainActivity.kt @@ -157,8 +157,7 @@ class MainViewModel(application: Application) : AndroidViewModel(application) { res[idx] = !res[idx] if (!res.any { it }) { currentState - } - else { + } else { currentState.copy( stringSettings = res.toList() ) @@ -328,11 +327,7 @@ fun Fretfret(viewModel: MainViewModel = viewModel()) { onClick = { viewModel.updateNote() }, shape = RoundedCornerShape(5.dp) ) { - if (uiState.lastNote != null) { - Text("next") - } else { - Text("start") - } + Text("next") } } }