summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorAntony Sargent <asargent@google.com>2022-01-19 11:34:15 -0800
committerAntony Sargent <asargent@google.com>2022-01-20 02:35:15 +0000
commited0481d2f6e481a174cc27e8411cd4b1ce2ec8b1 (patch)
tree02557086872e1156f7df98ae2ae6123169ac61f8 /core/java/android/widget/TextView.java
parenta26e957b9b24a4959c34e09695bf945bbbddb484 (diff)
Fix IndexOutOfBoundsException on VirtualDisplay removal
We were accidentally calling remove() on an ArrayList<Integer> using a primitive integer, which is interpreted as an index, when we intended to be removing by Integer value. This CL fixes that by switching to using a ArraySet for the data structure, since we were only using it as a Set anyway and don't need List semantics. Test: atest VirtualDeviceManagerServiceTest Fixes: 215381936 Change-Id: I730f5f4001fd6b3627d2ab70e7af5860ce367049
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions