Skip to content

Commit

Permalink
Preference to refresh posts every time
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Oct 8, 2016
1 parent 7555ed7 commit f71f410
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
27 changes: 27 additions & 0 deletions src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,33 @@
<item>2191</item>
</string-array>

<string-array name="pref_cache_autorefresh_age">
<item>@string/time_every_time</item>
<item>@string/time_1hr</item>
<item>@string/time_2hr</item>
<item>@string/time_3hr</item>
<item>@string/time_6hr</item>
<item>@string/time_1day</item>
<item>@string/time_3day</item>
<item>@string/time_1week</item>
<item>@string/time_1month</item>
<item>@string/time_3month</item>
</string-array>

<!-- Constants. Do not change. -->
<string-array name="pref_cache_autorefresh_age_return">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>6</item>
<item>24</item>
<item>72</item>
<item>168</item>
<item>730</item>
<item>2191</item>
</string-array>

<string-array name="pref_appearance_fontscale">
<item>0.7x</item>
<item>0.8x</item>
Expand Down
3 changes: 3 additions & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -929,4 +929,7 @@

<string name="lang_nl">Nederlands</string>

<!-- 2016-10-08 -->
<string name="time_every_time">Every time</string>

</resources>
4 changes: 2 additions & 2 deletions src/main/res/xml/prefs_cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<ListPreference android:title="@string/pref_cache_rerequest_postlist_age_title"
android:key="@string/pref_cache_rerequest_postlist_age_key"
android:entries="@array/pref_cache_maxage"
android:entryValues="@array/pref_cache_maxage_return"
android:entries="@array/pref_cache_autorefresh_age"
android:entryValues="@array/pref_cache_autorefresh_age_return"
android:defaultValue="1"/>

</PreferenceCategory>
Expand Down

0 comments on commit f71f410

Please sign in to comment.