diff options
author | Doris Ling <dling@google.com> | 2017-12-04 11:12:26 -0800 |
---|---|---|
committer | Doris Ling <dling@google.com> | 2017-12-07 12:50:57 -0800 |
commit | 6ba87706fe200f741fdb64b2f1a6d1028851463b (patch) | |
tree | 50a4ffbfd5010056789a961b9e8f4bbb5b52c111 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 839edb1781264eb268711075add1e4e31a18caed (diff) |
Fix ConcurrentModificationException in DashboardCategory.
- When getting the copy of dashboard tiles, create a new list instead of
getting the unmodifiable list, as the underlying implementation of the
unmodifiable list actually access the original list directly.
This getTiles() method is meant to return a copy of the list of tiles
to avoid concurrent access to the original list, so, it needs a copy
instead of a direct reference to the original list.
- synchrnoized all updater methods in DashboardCategory
Change-Id: I696b669f39fea5019a3b12ca73da47a7c11b03fb
Fixes: 69677575
Test: make RunSettingsLibRoboTests
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions