Commit 4b81bb1
[AppBarLayout] Loosen check for scrollable child when adding a11y actions
Adding the a11y delegate and a11y actions was dependent on there being a CoordinatorLayout child that both inherits from certain scrolling classes (NestedScrollingChild, ListView, ScrollView) and has an AppBarLayout scrolling behavior. This was too restrictive and so we only check for a behavior.
Any scrolling child may add an a11y delegate or scroll action to the parent CoordinatorLayout.
PiperOrigin-RevId: 4483353801 parent d25d18d commit 4b81bb1
File tree
1 file changed
+21
-9
lines changed- lib/java/com/google/android/material/appbar
1 file changed
+21
-9
lines changedLines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1745 | 1745 | | |
1746 | 1746 | | |
1747 | 1747 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
| 1748 | + | |
| 1749 | + | |
1752 | 1750 | | |
1753 | 1751 | | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1759 | 1756 | | |
1760 | 1757 | | |
1761 | 1758 | | |
| |||
1782 | 1779 | | |
1783 | 1780 | | |
1784 | 1781 | | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
1785 | 1797 | | |
1786 | 1798 | | |
1787 | 1799 | | |
| |||
0 commit comments