aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-02 20:36:49 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-02 20:36:49 -0700
commit0f1ab295e42f62c5f62bee2f4285da0f2de8f888 (patch)
treeceaf76d226cbc44ed5ae74a4748fa41e86f1da58 /res
parentd9a7ab2d4ffa3cf4b50713d07b227281fdd1ed02 (diff)
downloaddsub-0f1ab295e42f62c5f62bee2f4285da0f2de8f888.tar.gz
dsub-0f1ab295e42f62c5f62bee2f4285da0f2de8f888.tar.bz2
dsub-0f1ab295e42f62c5f62bee2f4285da0f2de8f888.zip
Make Show Rating in menus optional
Diffstat (limited to 'res')
-rw-r--r--res/menu/select_album_context.xml10
-rw-r--r--res/menu/select_song_context.xml10
-rw-r--r--res/values/strings.xml1
-rw-r--r--res/xml/settings.xml6
4 files changed, 19 insertions, 8 deletions
diff --git a/res/menu/select_album_context.xml b/res/menu/select_album_context.xml
index d1a6b271..5b2529e7 100644
--- a/res/menu/select_album_context.xml
+++ b/res/menu/select_album_context.xml
@@ -58,8 +58,10 @@
android:id="@+id/album_menu_share"
android:title="@string/menu.share"/>
</group>
-
- <item
- android:id="@+id/menu_rate"
- android:title="@string/menu.rate"/>
+
+ <group android:id="@+id/hide_rating">
+ <item
+ android:id="@+id/menu_rate"
+ android:title="@string/menu.rate"/>
+ </group>
</menu>
diff --git a/res/menu/select_song_context.xml b/res/menu/select_song_context.xml
index 7f15ccbf..d8fc211c 100644
--- a/res/menu/select_song_context.xml
+++ b/res/menu/select_song_context.xml
@@ -59,10 +59,12 @@
android:id="@+id/song_menu_share"
android:title="@string/menu.share"/>
</group>
-
- <item
- android:id="@+id/menu_rate"
- android:title="@string/menu.rate"/>
+
+ <group android:id="@+id/hide_rating">
+ <item
+ android:id="@+id/menu_rate"
+ android:title="@string/menu.rate"/>
+ </group>
<group android:id="@+id/server_1.9">
<item
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 534dbf57..b31efda1 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -416,6 +416,7 @@
<string name="settings.menu_options.play_last_summary">Show Play last in menus</string>
<string name="settings.menu_options.star_summary">Show Star in menus</string>
<string name="settings.menu_options.shared_summary">Show Share in menus</string>
+ <string name="settings.menu_options.rate_summary">Show Rating in menus</string>
<string name="settings.browse_by_tags">Browse By Tags</string>
<string name="settings.browse_by_tags_summary">Browse by tags instead of by folder structure. Requires Subsonic 4.7+</string>
<string name="settings.override_system_language">Override System Language</string>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 42b74aa0..bafb5f6c 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -101,6 +101,12 @@
android:key="showShared"
android:defaultValue="true"/>
+ <CheckBoxPreference
+ android:title="@string/menu.rate"
+ android:summary="@string/settings.menu_options.rate_summary"
+ android:key="showRating"
+ android:defaultValue="true"/>
+
</PreferenceCategory>
</PreferenceScreen>