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

Commit c0892c6b authored by John Spurlock's avatar John Spurlock
Browse files

Volume: Mark inactive sliders as focusable.

Enabled but inactive sliders ought to be focusable, just not
focused.

Bug: 22096089
Change-Id: I95cdfc1b1258ca0e4562761031f4ee59bd35e7e3
parent bee7245c
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;