add sound icon for option menu
This commit is contained in:
parent
051558b923
commit
a38786c0c7
5 changed files with 3 additions and 1 deletions
BIN
OsmAnd/res/drawable-hdpi/ic_menu_soundoff.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/ic_menu_soundoff.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_menu_soundon.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/ic_menu_soundon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_menu_soundoff.png
Normal file
BIN
OsmAnd/res/drawable-mdpi/ic_menu_soundoff.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_menu_soundon.png
Normal file
BIN
OsmAnd/res/drawable-mdpi/ic_menu_soundon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
|
@ -877,7 +877,9 @@ public class MapActivityActions implements DialogProvider {
|
|||
MenuItem muteMenu = menu.findItem(R.id.map_mute);
|
||||
if(muteMenu != null){
|
||||
if (routingHelper.getFinalLocation() != null && routingHelper.isFollowingMode()) {
|
||||
muteMenu.setTitle(routingHelper.getVoiceRouter().isMute() ? R.string.menu_mute_on : R.string.menu_mute_off);
|
||||
boolean mute = routingHelper.getVoiceRouter().isMute();
|
||||
muteMenu.setTitle(mute ? R.string.menu_mute_on : R.string.menu_mute_off);
|
||||
muteMenu.setIcon(mute ? R.drawable.ic_menu_soundoff : R.drawable.ic_menu_soundon);
|
||||
muteMenu.setVisible(true);
|
||||
} else {
|
||||
muteMenu.setVisible(false);
|
||||
|
|
Loading…
Reference in a new issue