Skip to content

Commit

Permalink
Rename lotto long press setting, improve text
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman committed Dec 26, 2024
1 parent 0364aea commit 428c187
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun lotteryLauncher(
.fillMaxWidth()
) {
Text(
stringResource(R.string.p_fine_tune_lotto_long_press),
stringResource(R.string.p_lotto_long_press_duration),
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.secondary,
modifier = Modifier.weight(1f),
Expand All @@ -70,6 +70,7 @@ fun lotteryLauncher(
value = lottoLongPressSeconds,
onValueChange = { lottoLongPressSeconds = it },
valueRange = 10..30,
valueRepresentation = { "${it}s" }
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/localized.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,5 +474,5 @@ After pressing on the button, switch the app filter from \"Not optimized\" to \"
<string name="servant_enhancement_aborted">Enhancement was aborted</string>
<string name="note">"Note:"</string>

<string name="p_fine_tune_lotto_long_press">"Lotto Long Press (in sec)"</string>
<string name="p_lotto_long_press_duration">"Lottery button hold duration"</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class PrefsCore @Inject constructor(
val limitFP = maker.int("fp_limit", 1)
val receiveEmbersWhenGiftBoxFull = maker.bool("receive_embers_when_gift_box_full")

val lottoLongPressSeconds = maker.stringAsInt("lotto_spin", 20)
val lottoLongPressSeconds = maker.stringAsInt("lotto_long_press_seconds", 20)

val supportSwipesPerUpdate = maker.int("support_swipes_per_update_x", 10)
val supportMaxUpdates = maker.int("support_max_updates_x", 5)
Expand Down

0 comments on commit 428c187

Please sign in to comment.