From 4078ab41e8df20db7b526efd507aa98bca3fc716 Mon Sep 17 00:00:00 2001 From: abdurisaq Date: Mon, 21 Oct 2024 21:46:12 -0700 Subject: [PATCH 1/2] Fix off by one error in SliderItem --- .../tachiyomi/presentation/core/components/SettingsItems.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt index f9d4923c5d..de43e3b25f 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt @@ -202,7 +202,7 @@ fun SliderItem( }, modifier = Modifier.weight(1.5f), valueRange = min.toFloat()..max.toFloat(), - steps = max - min, + steps = max - min-1, ) } } From 0b9132cf054919343a6c4cced353a1dea2b236ef Mon Sep 17 00:00:00 2001 From: abdurisaq <133296208+abdurisaq@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:12:31 -0700 Subject: [PATCH 2/2] Update SettingsItems.kt fixed formatting issue --- .../tachiyomi/presentation/core/components/SettingsItems.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt index de43e3b25f..7a1110857c 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt @@ -202,7 +202,7 @@ fun SliderItem( }, modifier = Modifier.weight(1.5f), valueRange = min.toFloat()..max.toFloat(), - steps = max - min-1, + steps = max - min - 1, ) } }