Commit 8c823363 authored by Geoffrey Métais's avatar Geoffrey Métais

Remove unnecessary sorting

parent 77748b60
......@@ -800,7 +800,8 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
updateAlbums, updateSongs, updateGenres, updatePlaylists));
//process the visible list first
tasks.add(0, tasks.remove(mViewPager.getCurrentItem()));
if (mViewPager.getCurrentItem() != 0)
tasks.add(0, tasks.remove(mViewPager.getCurrentItem()));
tasks.add(new Runnable() {
@Override
public void run() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment