diff --git a/packages/SystemUI/res/drawable/ic_volume_bt.xml b/packages/SystemUI/res/drawable/ic_volume_media_bt.xml similarity index 54% rename from packages/SystemUI/res/drawable/ic_volume_bt.xml rename to packages/SystemUI/res/drawable/ic_volume_media_bt.xml index bce407ad5e50e..3364d9c80a8c0 100644 --- a/packages/SystemUI/res/drawable/ic_volume_bt.xml +++ b/packages/SystemUI/res/drawable/ic_volume_media_bt.xml @@ -14,13 +14,16 @@ limitations under the License. --> + android:width="24.0dp" + android:height="24.0dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + android:pathData="M17.0,3.0l-7.0,0.0l0.0,9.3C9.5,12.1 9.0,12.0 8.5,12.0C6.0,12.0 4.0,14.0 4.0,16.5S6.0,21.0 8.5,21.0s4.5,-2.3 4.5,-4.5C13.0,14.7 13.0,6.0 13.0,6.0l4.0,0.0L17.0,3.0z"/> + - \ No newline at end of file + diff --git a/packages/SystemUI/res/drawable/ic_volume_bt_mute.xml b/packages/SystemUI/res/drawable/ic_volume_media_bt_mute.xml similarity index 53% rename from packages/SystemUI/res/drawable/ic_volume_bt_mute.xml rename to packages/SystemUI/res/drawable/ic_volume_media_bt_mute.xml index 98a8137bb3b42..39f54f1ee5015 100644 --- a/packages/SystemUI/res/drawable/ic_volume_bt_mute.xml +++ b/packages/SystemUI/res/drawable/ic_volume_media_bt_mute.xml @@ -15,12 +15,18 @@ --> + android:pathData="M13.0,6.0l4.0,0.0L17.0,3.0l-7.0,0.0l0.0,5.6l3.0,3.0C13.0,8.8 13.0,6.0 13.0,6.0z"/> + + \ No newline at end of file diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java index d8b396561ab60..7dd05c5e0bcb1 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java @@ -700,7 +700,8 @@ public class VolumeDialog { final int iconRes = isRingVibrate ? R.drawable.ic_volume_ringer_vibrate : ss.routedToBluetooth ? - (ss.muted ? R.drawable.ic_volume_bt_mute : R.drawable.ic_volume_bt) + (ss.muted ? R.drawable.ic_volume_media_bt_mute + : R.drawable.ic_volume_media_bt) : mAutomute && ss.level == 0 ? row.iconMuteRes : (ss.muted ? row.iconMuteRes : row.iconRes); if (iconRes != row.cachedIconRes) { @@ -712,9 +713,9 @@ public class VolumeDialog { } row.iconState = iconRes == R.drawable.ic_volume_ringer_vibrate ? Events.ICON_STATE_VIBRATE - : (iconRes == R.drawable.ic_volume_bt_mute || iconRes == row.iconMuteRes) + : (iconRes == R.drawable.ic_volume_media_bt_mute || iconRes == row.iconMuteRes) ? Events.ICON_STATE_MUTE - : (iconRes == R.drawable.ic_volume_bt || iconRes == row.iconRes) + : (iconRes == R.drawable.ic_volume_media_bt || iconRes == row.iconRes) ? Events.ICON_STATE_UNMUTE : Events.ICON_STATE_UNKNOWN;