add option to remove limit on query size

This commit is contained in:
dkanada 2020-06-19 07:34:46 +09:00
commit d5476cc9d0
5 changed files with 46 additions and 10 deletions

View file

@ -35,4 +35,21 @@
<item>256000</item>
<item>128000</item>
</string-array>
<string-array name="pref_maximum_list_size_titles">
<item>@string/unlimited</item>
<item>1000</item>
<item>400</item>
<item>200</item>
<item>100</item>
</string-array>
<string-array name="pref_maximum_list_size_values">
<item>10000000</item>
<item>1000</item>
<item>400</item>
<item>200</item>
<item>100</item>
</string-array>
</resources>

View file

@ -115,6 +115,7 @@
<string name="pref_title_remember_last_tab">Remember Tab</string>
<string name="pref_title_remember_shuffle">Remember Shuffle</string>
<string name="pref_title_remember_queue">Remember Queue</string>
<string name="pref_title_maximum_list_size">Maximum List Size</string>
<string name="primary_color_desc">The primary theme color for control elements.</string>
<string name="accent_color_desc">An alternate color used to accent elements.</string>
<string name="pref_summary_album_art_on_lockscreen">Uses the current song\'s album cover as the lockscreen wallpaper.</string>

View file

@ -9,6 +9,16 @@
android:summary="@string/pref_summary_library_categories"
android:title="@string/library_categories" />
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATEListPreference
app:iconSpaceReserved="false"
android:defaultValue="100"
android:entries="@array/pref_maximum_list_size_titles"
android:entryValues="@array/pref_maximum_list_size_values"
android:key="maximum_list_size"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/pref_title_maximum_list_size" />
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
app:iconSpaceReserved="false"
android:defaultValue="true"