Jump to pos 0 if the limiter of a FILE adapter changes

This commit is contained in:
Adrian Ulrich 2017-02-18 10:58:03 +01:00
parent 111b2d90f0
commit f44ca3c3b0

View File

@ -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;