Do not pass out-of-bounds data to mLists[index].setSelection
This might cause crashes and the cached data is *not* guaranteed to be 'recent'
This commit is contained in:
parent
0e9f5b590a
commit
3067e59223
@ -650,9 +650,8 @@ public class LibraryPagerAdapter
|
||||
int index = message.arg1;
|
||||
mAdapters[index].commitQuery(message.obj);
|
||||
|
||||
Limiter curLimiter = mAdapters[index].getLimiter();
|
||||
Integer curPos = sLruAdapterPos.getPosition(mAdapters[index]);
|
||||
if (curPos != null)
|
||||
if (curPos != null && curPos < mLists[index].getCount())
|
||||
pos = (int)curPos;
|
||||
|
||||
mLists[index].setSelection(pos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user