Added option to only download artist images on wifi

This commit is contained in:
Karim Abou Zeid 2016-01-03 01:54:04 +01:00
commit 585fd1013c
9 changed files with 78 additions and 10 deletions

View file

@ -96,6 +96,9 @@
<string name="light_theme_name">Light</string>
<string name="dark_theme_name">Dark</string>
<string name="black_theme_name">Black (AMOLED)</string>
<string name="always">Always</string>
<string name="only_on_wifi">Only on wifi</string>
<string name="never">Never</string>
<string name="equalizer">Equalizer</string>
<string name="pref_header_colors">Colors</string>
<string name="pref_header_now_playing_screen">Now playing</string>
@ -107,6 +110,7 @@
<string name="pref_title_navigation_bar">Colored navigation bar</string>
<string name="pref_title_set_default_start_page">Start page</string>
<string name="pref_title_album_art_on_lockscreen">Show album cover</string>
<string name="pref_title_auto_download_artist_images">Auto download artist images</string>
<string name="pref_title_blurred_album_art">Blur album cover</string>
<string name="pref_title_colored_notification">Colored notification</string>
<string name="pref_title_ignore_media_store_artwork">Ignore Media Store covers</string>

View file

@ -27,4 +27,16 @@
<item>2</item>
</string-array>
<string-array name="pref_auto_download_images_titles">
<item>@string/always</item>
<item>@string/only_on_wifi</item>
<item>@string/never</item>
</string-array>
<string-array name="pref_auto_download_images_values">
<item>always</item>
<item>only_wifi</item>
<item>never</item>
</string-array>
</resources>

View file

@ -11,6 +11,16 @@
android:title="@string/pref_title_ignore_media_store_artwork"
android:widgetLayout="@layout/preference_dynamic_checkbox" />
<com.afollestad.materialdialogs.prefs.MaterialListPreference
android:defaultValue="only_wifi"
android:entries="@array/pref_auto_download_images_titles"
android:entryValues="@array/pref_auto_download_images_values"
android:key="auto_download_images_policy"
android:layout="@layout/preference_custom"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/pref_title_auto_download_artist_images" />
</com.kabouzeid.gramophone.prefs.DynamicPreferenceCategory>
</PreferenceScreen>