mute button in actionbar, no color change
This commit is contained in:
parent
92ee51b8db
commit
c79f09c119
|
@ -164,6 +164,9 @@ public abstract class ServicePlayerActivity extends AppCompatActivity
|
||||||
case R.id.action_append_playlist:
|
case R.id.action_append_playlist:
|
||||||
appendAllToPlaylist();
|
appendAllToPlaylist();
|
||||||
return true;
|
return true;
|
||||||
|
case R.id.action_mute:
|
||||||
|
player.onMuteUnmuteButtonClicked();
|
||||||
|
return true;
|
||||||
case R.id.action_system_audio:
|
case R.id.action_system_audio:
|
||||||
startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS));
|
startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS));
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -10,6 +10,13 @@
|
||||||
android:visible="true"
|
android:visible="true"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:id="@+id/action_mute"
|
||||||
|
android:icon="?attr/volume_off"
|
||||||
|
android:title="@string/mute"
|
||||||
|
android:visible="true"
|
||||||
|
app:showAsAction="ifRoom"/>
|
||||||
|
|
||||||
<item android:id="@+id/action_settings"
|
<item android:id="@+id/action_settings"
|
||||||
android:orderInCategory="1"
|
android:orderInCategory="1"
|
||||||
android:title="@string/settings"
|
android:title="@string/settings"
|
||||||
|
|
|
@ -448,6 +448,7 @@
|
||||||
<string name="rename_playlist">Rename</string>
|
<string name="rename_playlist">Rename</string>
|
||||||
<string name="playlist_name_input">Name</string>
|
<string name="playlist_name_input">Name</string>
|
||||||
<string name="append_playlist">Add To Playlist</string>
|
<string name="append_playlist">Add To Playlist</string>
|
||||||
|
<string name="mute">Mute</string>
|
||||||
<string name="set_as_playlist_thumbnail">Set as Playlist Thumbnail</string>
|
<string name="set_as_playlist_thumbnail">Set as Playlist Thumbnail</string>
|
||||||
<string name="bookmark_playlist">Bookmark Playlist</string>
|
<string name="bookmark_playlist">Bookmark Playlist</string>
|
||||||
<string name="unbookmark_playlist">Remove Bookmark</string>
|
<string name="unbookmark_playlist">Remove Bookmark</string>
|
||||||
|
|
Loading…
Reference in New Issue