commit | 221327dc05a2976e6a10733bb1f8d1befb9c4f3e | [log] [tgz] |
---|---|---|
author | Sundeep Ghuman <sghuman@google.com> | Tue May 02 15:58:39 2017 -0700 |
committer | Sundeep Ghuman <sghuman@google.com> | Tue May 02 16:35:23 2017 -0700 |
tree | 5d71d5901c494685486bbbb998ae68b119da217a | |
parent | 074a67c1166eefb9ad7bdf6762ec93dad7f9114a [diff] |
Fix Array Index out of bounds error. This error was caused by concurrent modification of the mPendingNotifications SparseIntArray which fell outside the synchronization block in copyAndNotifyListeners. Now the entire copyAndNotifyListeners is synchronized on mLock. Bug: b/37775443 Test: runtest --path frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java Change-Id: I19e8a4ecea5cd45122f4ca89f8ed959e500c951a