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

Commit 5eb017c1 authored by Riley Jones's avatar Riley Jones
Browse files

Changing ActionMenuItemView to provide the Button class name to accessibility services.

Bug: 207142554
Test: The behavior we wish to see does not occur within framework - no real way to test it.
Change-Id: Iba85eefed09cad0b5c34bcdf853e2c3fe99958fa
parent 65c98013
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -94,6 +94,11 @@ public class ActionMenuItemView extends TextView
        updateTextButtonVisibility();
    }

    @Override
    public CharSequence getAccessibilityClassName() {
        return android.widget.Button.class.getName();
    }

    /**
     * Whether action menu items should obey the "withText" showAsAction flag. This may be set to
     * false for situations where space is extremely limited. -->