diff options
| -rw-r--r-- | packages/SystemUI/res/layout/volume_dialog_row.xml | 2 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/packages/SystemUI/res/layout/volume_dialog_row.xml b/packages/SystemUI/res/layout/volume_dialog_row.xml index 1a6d34e4f965..91e931da1f3e 100644 --- a/packages/SystemUI/res/layout/volume_dialog_row.xml +++ b/packages/SystemUI/res/layout/volume_dialog_row.xml @@ -50,6 +50,8 @@ android:layout_below="@id/volume_row_header" android:layout_toEndOf="@id/volume_row_icon" android:layout_toStartOf="@+id/volume_settings_button" + android:focusable="true" + android:focusableInTouchMode="true" android:paddingEnd="8dp" android:paddingStart="8dp" /> diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java index 0ab0392d412b..3964820f6e1a 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java @@ -741,12 +741,7 @@ public class VolumeDialog { private void updateVolumeRowSliderTintH(VolumeRow row, boolean isActive) { if (isActive && mExpanded) { - row.slider.setFocusable(true); - row.slider.setFocusableInTouchMode(true); row.slider.requestFocus(); - } else { - row.slider.setFocusableInTouchMode(false); - row.slider.setFocusable(false); } final ColorStateList tint = isActive && row.slider.isEnabled() ? mActiveSliderTint : mInactiveSliderTint; |