OSDN Git Service

Fix two IndexOutOfBoundsException crashes.
authorJulia Reynolds <juliacr@google.com>
Thu, 15 Jun 2017 19:24:01 +0000 (15:24 -0400)
committerJulia Reynolds <juliacr@google.com>
Thu, 15 Jun 2017 21:31:42 +0000 (21:31 +0000)
commit0839c02bcb48d41442e772899c56d6e6e2c04031
treed12b335dc9f74f4a80a8eef4a686a1e5185e92cd
parent1a01d1298ff3bf191a6c5be876654af964c877e8
Fix two IndexOutOfBoundsException crashes.

Do not remove (sometimes multiple) items from lists
you are iterating over.

Test: runtest systemui-notification
Change-Id: I130cc63ae2f5721e7b434006f4306e0b1eaef77d
Fixes: 62622503
services/core/java/com/android/server/notification/NotificationManagerService.java
services/tests/notification/src/com/android/server/notification/NotificationManagerServiceTest.java