OSDN Git Service

Create a new list when building suggestion data.
authorDoris Ling <dling@google.com>
Tue, 6 Mar 2018 18:55:40 +0000 (10:55 -0800)
committerDoris Ling <dling@google.com>
Tue, 6 Mar 2018 18:55:40 +0000 (10:55 -0800)
commit05811609c763caf3cf145d9ee112f253114387e9
treebb72c3cca746c24bc66c6e303368ba23b2cc9945
parent59520b028a2055cf5541ec42dcf1bc19cb6fe696
Create a new list when building suggestion data.

- using sublist of the original suggestions list may results in
ConcurrentModificationException if the originaly list is being modified.
Create a new list instead to avoid running into the issue.

Change-Id: Ia83a0432be542eeb428d177f6118d26fc2262e93
Fixes: 74194336
Test: run monkey
src/com/android/settings/dashboard/DashboardAdapter.java
src/com/android/settings/dashboard/DashboardData.java
tests/robotests/src/com/android/settings/dashboard/DashboardAdapterTest.java