Skip to content

Commit 840d7a9

Browse files
Fix: Fixed the issue with size bars.
The issue here was that I had the min and max numbers the wrong way around. Closes #652
1 parent bb2247f commit 840d7a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/src/main/java/com/github/droidworksstudio/mlauncher/ui/settings/LookFeelFragment.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class LookFeelFragment : Fragment() {
163163
dialogBuilder.showSliderDialog(
164164
context = requireContext(),
165165
title = getString(R.string.clock_text_size),
166-
minValue = Constants.MAX_CLOCK_DATE_SIZE,
167-
maxValue = Constants.MIN_CLOCK_DATE_SIZE,
166+
minValue = Constants.MIN_CLOCK_DATE_SIZE,
167+
maxValue = Constants.MAX_CLOCK_DATE_SIZE,
168168
currentValue = prefs.clockSize,
169169
onValueSelected = { newClockSize ->
170170
selectedClockSize = newClockSize // Update state
@@ -182,8 +182,8 @@ class LookFeelFragment : Fragment() {
182182
dialogBuilder.showSliderDialog(
183183
context = requireContext(),
184184
title = getString(R.string.date_text_size),
185-
minValue = Constants.MAX_CLOCK_DATE_SIZE,
186-
maxValue = Constants.MIN_CLOCK_DATE_SIZE,
185+
minValue = Constants.MIN_CLOCK_DATE_SIZE,
186+
maxValue = Constants.MAX_CLOCK_DATE_SIZE,
187187
currentValue = prefs.dateSize,
188188
onValueSelected = { newDateSize ->
189189
selectedDateSize = newDateSize // Update state
@@ -201,8 +201,8 @@ class LookFeelFragment : Fragment() {
201201
dialogBuilder.showSliderDialog(
202202
context = requireContext(),
203203
title = getString(R.string.battery_text_size),
204-
minValue = Constants.MAX_BATTERY_SIZE,
205-
maxValue = Constants.MIN_BATTERY_SIZE,
204+
minValue = Constants.MIN_BATTERY_SIZE,
205+
maxValue = Constants.MAX_BATTERY_SIZE,
206206
currentValue = prefs.batterySize,
207207
onValueSelected = { newBatterySize ->
208208
selectedBatterySize = newBatterySize // Update state

0 commit comments

Comments
 (0)