9c2f83fb889781ff2c0cd284fa5e8387bee39592 |
|
19-Sep-2017 |
Denis Hsu <denis.hsu@mediatek.com> |
Break the for loop searching after removing the item When inserting a new HardwareConfig item, we will search the list to find if it exists. If yes, remove it first then insert the new one. The problem is that after removing it, we should break the for loop searching else the size value is incorrect and cause IndexOutOfBoundsException. Test: manual, ran the test 30 times and it passed 30 times Change-Id: I870eaa9be410e8e8b6c24ff748fb6c84c292c289
/frameworks/opt/telephony/src/java/com/android/internal/telephony/TelephonyDevController.java
|