summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorJustin Weir <justinweir@google.com>2022-04-12 19:58:08 +0000
committerJustin Weir <justinweir@google.com>2022-04-13 19:42:00 +0000
commit5304fa7896597de7a78803123decdfdfe81bfd93 (patch)
tree6e0f2791895367a77a8e748fb01640e04f968f63 /core/java/android/util/SparseSetArray.java
parent6e41c538d34f31ef3d5cb3abeef5c879dd640367 (diff)
Allow null prev/next buttons to be INVISIBLE instead of GONE
Added an overload method for setVisibleAndAlpha that allows callers to specify the value for null as INVISIBLE instead of GONE and called that instead for the prev/next buttons. Added booleans to MediaButton to allow it to say whether to reserve the space for the prev/next buttons when they are null. Made the MediaButton class immutable. Fixes: 224749799 Test: tested manually and added 2 tests to MediaControlPanelTest Change-Id: I5ccac017eccfb2dc2ecdd42a1e6517d4787c68b6
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions