Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb60c42d authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Volume: Mark inactive sliders as focusable." into mnc-dev

parents 0303d9ce c0892c6b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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" />

+0 −5
Original line number Diff line number Diff line
@@ -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;