Skip to content

Commit

Permalink
buttons reappear based on circle lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
UrAvgCode committed Feb 16, 2025
1 parent d3b54b9 commit a70af7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ fun SettingsScreen(onNavigateBack: () -> Unit) {
title = "Circle Lifetime",
value = circleLifetime.longValue,
onValueChange = { sliderValue ->
circleLifetime.longValue = sliderValue.toLong()
SettingsManager.circleLifetime = sliderValue.toLong()
circleLifetime.longValue = sliderValue
SettingsManager.circleLifetime = sliderValue
},
valueRange = 0L..3000L,
steps = 5,
Expand All @@ -140,8 +140,8 @@ fun SettingsScreen(onNavigateBack: () -> Unit) {
title = "Order Circle Lifetime",
value = orderCircleLifetime.longValue,
onValueChange = { sliderValue ->
orderCircleLifetime.longValue = sliderValue.toLong()
SettingsManager.orderCircleLifetime = sliderValue.toLong()
orderCircleLifetime.longValue = sliderValue
SettingsManager.orderCircleLifetime = sliderValue
},
valueRange = 0L..3000L,
steps = 5,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/uravgcode/chooser/views/Chooser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Chooser(
winnerChosen = false
setBackgroundColor(Color.BLACK)
}, 150)
}, 1000)
}, if (mode == ORDER) OrderCircle.circleLifetime else Circle.circleLifetime)
} else {
setButtonVisibility(true)
}
Expand Down

0 comments on commit a70af7e

Please sign in to comment.