summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authoryingleiw <yingleiw@google.com>2019-12-16 15:11:26 -0800
committeryingleiw <yingleiw@google.com>2019-12-16 17:58:20 -0800
commit6a55e06d96b5d7d6bd46a36f73a76dcbeef46aaf (patch)
tree9b3f3542a537eff4c959c2ad69fe7a39da9efd73 /rs/java/android/renderscript/Program.java
parent695bd671a3750c7d7ac03a06b155704644d13876 (diff)
Fix setting state description of toggle button and switch
We should set the state description whenever textOn and textOff are updated. Setting it multiple times doesn't hurt because the setStateDescription method won't do anything if the state description is the same. Test: tested with talkback test app. Without the change, a toggle button with textOn and textOff set won't have them announced as the state before a click happens. After the change, a toggle button with textOn and textOff set has them announced as state. Change-Id: Ia1cc6218c8cd0125c123c9b650bb4963825db23a
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions