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

Commit e2503dd3 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Silence non-clickable imagebutton

Change-Id: I1d00d86e1dd1ca2ebaa20cdee74f9f93a7581d9a
Fixes: 34710523
Test: turn on talkback and try to select button
parent bb1d7d21
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable {
                return false;
            }
        });
        row.icon = (ImageButton) row.view.findViewById(R.id.volume_row_icon);
        row.icon = row.view.findViewById(R.id.volume_row_icon);
        row.icon.setImageResource(iconRes);
        if (row.stream != AudioSystem.STREAM_ACCESSIBILITY) {
            row.icon.setOnClickListener(new OnClickListener() {
@@ -465,6 +465,8 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable {
                    row.userAttempt = 0;  // reset the grace period, slider updates immediately
                }
            });
        } else {
            row.icon.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
        }
    }