abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorMatej Drobnič2025-09-29 00:56:23 +0200
committerGitHub2025-09-29 00:56:23 +0200
commitdf8e7a01e0e69c2a8463a27096d4d3c33b1f6b46 (patch)
tree354034f08133fa4aa6073ba386258b408e2bd046 /res
parent7fdf63b930e51a06011ce911cf87a03c41b8334d (diff)
downloadunexpected-keyboard-df8e7a01e0e69c2a8463a27096d4d3c33b1f6b46.tar.gz
unexpected-keyboard-df8e7a01e0e69c2a8463a27096d4d3c33b1f6b46.zip
Make history duration configurable (#1074)
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml12
-rw-r--r--res/values/strings.xml6
-rw-r--r--res/xml/settings.xml3
3 files changed, 21 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index cd12337..56015e9 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -106,4 +106,16 @@
<item>30</item>
<item>15</item>
</string-array>
+ <string-array name="pref_clipboard_duration_entries">
+ <item>@string/pref_clipboard_history_duration_1</item>
+ <item>@string/pref_clipboard_history_duration_5</item>
+ <item>@string/pref_clipboard_history_duration_30</item>
+ <item>@string/pref_clipboard_history_duration_stop</item>
+ </string-array>
+ <string-array name="pref_clipboard_duration_values">
+ <item>1</item>
+ <item>5</item>
+ <item>30</item>
+ <item>-1</item>
+ </string-array>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 988ecaa..05e9160 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -140,4 +140,10 @@
<string name="clipboard_remove_confirm">Remove this clipboard item?</string>
<string name="clipboard_remove_confirmed">Yes</string>
<string name="toast_no_voice_input">No voice typing app installed</string>
+ <string name="pref_category_clipboard">Clipboard</string>
+ <string name="pref_clipboard_history_duration">Clipboard memory duration</string>
+ <string name="pref_clipboard_history_duration_1">At most 1 minute</string>
+ <string name="pref_clipboard_history_duration_5">At most 5 minutes</string>
+ <string name="pref_clipboard_history_duration_30">At most 30 minutes</string>
+ <string name="pref_clipboard_history_duration_stop">Until the app stops</string>
</resources>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 22dbef2..c96f546 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -59,4 +59,7 @@
<juloo.keyboard2.prefs.IntSlideBarPreference android:key="custom_border_radius" android:title="@string/pref_corners_radius_title" android:summary="%s%%" android:defaultValue="0" min="0" max="100" android:dependency="border_config"/>
<juloo.keyboard2.prefs.SlideBarPreference android:key="custom_border_line_width" android:title="@string/pref_border_width_title" android:summary="%sdp" android:defaultValue="0" min="0" max="5" android:dependency="border_config"/>
</PreferenceCategory>
+ <PreferenceCategory android:title="@string/pref_category_clipboard">
+ <ListPreference android:key="clipboard_history_duration" android:title="@string/pref_clipboard_history_duration" android:summary="%s" android:defaultValue="5" android:entries="@array/pref_clipboard_duration_entries" android:entryValues="@array/pref_clipboard_duration_values" />
+ </PreferenceCategory>
</PreferenceScreen>