Jump to pos 0 if the limiter of a FILE adapter changes
This commit is contained in:
parent
111b2d90f0
commit
f44ca3c3b0
@ -577,6 +577,10 @@ public class LibraryPagerAdapter
|
||||
mPendingFileLimiter = limiter;
|
||||
} else {
|
||||
mFilesAdapter.setLimiter(limiter);
|
||||
// forcefully jump to beginning - commit query might restore a saved position
|
||||
// but if it doesn't we would end up at the same scrolling position in a new
|
||||
// folder which is uncool.
|
||||
mLists[MediaUtils.TYPE_FILE].setSelection(0);
|
||||
requestRequery(mFilesAdapter);
|
||||
}
|
||||
tab = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user