Skip to content

Commit

Permalink
turn preference into SliderPreference
Browse files Browse the repository at this point in the history
  • Loading branch information
RobozinhoD committed Mar 1, 2024
1 parent 0f7c80e commit c916f46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/values/10-preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<item quantity="one">%d min</item>
<item quantity="other">%d mins</item>
</plurals>
<string name="pref_milliseconds">%s ms</string>
<!-- TODO: move to 20-search-preference so we can contribute upstream (searchpreference_no_results)-->
<string name="pref_search_no_results">No results</string>

Expand Down
8 changes: 5 additions & 3 deletions AnkiDroid/src/main/res/xml/preferences_accessibility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@
android:valueTo="200"
android:stepSize="10"
app:displayFormat="@string/percentage"/>
<com.ichi2.preferences.NumberRangePreferenceCompat
<com.ichi2.preferences.SliderPreference
android:defaultValue="0"
android:key="@string/pref_card_minimal_click_time"
android:summary="@string/pref_show_answer_long_press_summary"
android:title="@string/pref_show_answer_long_press"
app:min="0"
android:max="2000" />
android:valueFrom="0"
android:valueTo="2000"
android:stepSize="100"
app:displayFormat="@string/pref_milliseconds"/>
</PreferenceScreen>

0 comments on commit c916f46

Please sign in to comment.