bb2fb2ffd61e2d043af50983b9c9460fedb43eb1
Search highlight function includes two steps: Scroll list to target position first, then notifyItemChanged to it. We use a Handler.postDelay to implement this. However, when scheduled runnable starts, the original target position could have changed due to preference list update, calling recyclerview's methods after that will be easy to cause an exception. This CL ensures highlight position every time before calling recyclerView update, which also contribute to origin fix of RecyclerView IllegalArgumentException to a certain extent. Test: atest, also test some search results, and see the correct behavior Fixes: 246411107 Change-Id: Ifa758ce3718b047138079246cdfce99fdf66d5b2
…
Description
No description provided
Languages
Java
89.8%
Kotlin
10.2%