diff options
Diffstat (limited to 'res')
| -rw-r--r-- | res/values/arrays.xml | 12 | ||||
| -rw-r--r-- | res/values/strings.xml | 6 | ||||
| -rw-r--r-- | res/xml/settings.xml | 3 |
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> |
