From 5ce90e94d4199fde724edef2cea5fe6282ef0b90 Mon Sep 17 00:00:00 2001 From: notfire Date: Fri, 8 Nov 2024 11:49:50 -0500 Subject: [PATCH] add flashdim patch --- patches/flashdim_quicker.patch | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 patches/flashdim_quicker.patch diff --git a/patches/flashdim_quicker.patch b/patches/flashdim_quicker.patch new file mode 100644 index 0000000..8b3366f --- /dev/null +++ b/patches/flashdim_quicker.patch @@ -0,0 +1,38 @@ +diff --git a/app/src/main/kotlin/com/cyb3rko/flashdim/modals/IntervalDialog.kt b/app/src/main/kotlin/com/cyb3rko/flashdim/modals/IntervalDialog.kt +index 49876db..8a429e5 100644 +--- a/app/src/main/kotlin/com/cyb3rko/flashdim/modals/IntervalDialog.kt ++++ b/app/src/main/kotlin/com/cyb3rko/flashdim/modals/IntervalDialog.kt +@@ -105,7 +105,7 @@ internal object IntervalDialog { + mode = 1 + binding.numberInputLayout.setHint(R.string.dialog_interval_input_hint2) + binding.numberInputLayout.suffixText = null +- binding.numberInputLayout.counterMaxLength = 3 ++ binding.numberInputLayout.counterMaxLength = 5 + binding.numberInputText.setText(bpm) + } + +@@ -117,7 +117,7 @@ internal object IntervalDialog { + validateBpm(input) + } + +- private fun validateTime(time: String) = time.toInt() in 200..10000 ++ private fun validateTime(time: String) = time.toInt() in 1..10000 + +- private fun validateBpm(bpm: String) = bpm.toInt() in 10..200 ++ private fun validateBpm(bpm: String) = bpm.toInt() in 1..10000 + } +diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml +index 55032ab..ca06c3d 100644 +--- a/app/src/main/res/values/strings.xml ++++ b/app/src/main/res/values/strings.xml +@@ -12,8 +12,8 @@ + Flash + Interval Flash + ⚠️ Seizure Warning: Flashing light +- Interval time (200–10000ms) +- Beats per minute (10–200) ++ Interval time (1–10000ms) ++ Beats per minute (1–10000) + Value not allowed + Time + BPM