Skip to content
Snippets Groups Projects
Commit 664cbb6a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Video fragment: Avoid useless refresh

(cherry picked from commit 4ef32177)
parent b782d540
No related branches found
No related tags found
No related merge requests found
......@@ -402,7 +402,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
protected void onParsingServiceFinished() {
mMediaLibrary.removeMediaUpdatedCb();
mMediaLibrary.removeMediaAddedCb();
mHandler.sendEmptyMessage(UPDATE_LIST);
if (!isHidden()) mHandler.sendEmptyMessage(UPDATE_LIST);
}
@Override
......@@ -417,8 +417,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
@Override
public void restoreList() {
if (mAdapter != null && mGridView != null)
mAdapter.restoreList();
if (mAdapter != null && mGridView != null) mAdapter.restoreList();
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment