Skip to content

Commit

Permalink
Rename time picker prefrence (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
M00NJ authored Sep 10, 2023
1 parent eaafb1e commit 4866827
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/bnyro/clock/ui/screens/TimerScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import com.bnyro.clock.util.Preferences
@Composable
fun TimerScreen(timerModel: TimerModel) {
val context = LocalContext.current
val useOldPicker = Preferences.instance.getBoolean(Preferences.timerUsePickerKey, false)
val useScrollPicker = Preferences.instance.getBoolean(Preferences.timerUsePickerKey, false)
val showExampleTimers = Preferences.instance.getBoolean(Preferences.timerShowExamplesKey, true)

LaunchedEffect(Unit) {
Expand Down Expand Up @@ -111,7 +111,7 @@ fun TimerScreen(timerModel: TimerModel) {
.padding(paddingValues),
horizontalAlignment = Alignment.CenterHorizontally
) {
if (useOldPicker) {
if (!useScrollPicker) {
Row(
Modifier
.fillMaxWidth()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<string name="analog_clock">Analog clock</string>
<string name="digital_clock">Digital clock</string>
<string name="vertical_clock">Vertical clock</string>
<string name="timer_use_time_picker">Use minimal timer duration picker</string>
<string name="timer_use_time_picker">Use number pad for timers</string>
<string name="delete">Delete</string>
<string name="behavior">Behavior</string>
<string name="show_timer_quick_selection">Show timer quick selection</string>
Expand Down

0 comments on commit 4866827

Please sign in to comment.