Commit 141ca4d3 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix groups degrouped after thumbnail generated

parent 2df62a8d
......@@ -470,7 +470,8 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
}
public void setItemToUpdate(MediaWrapper item) {
mHandler.sendMessage(mHandler.obtainMessage(MediaLibrary.UPDATE_ITEM, item));
if (mVideoAdapter.getAll().contains(item))
mHandler.sendMessage(mHandler.obtainMessage(MediaLibrary.UPDATE_ITEM, item));
}
public void setGroup(String prefix) {
......
......@@ -242,7 +242,8 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
public void update(MediaWrapper item) {
int position = mVideos.indexOf(item);
if (position != -1) {
mVideos.set(position, item);
if (!(mVideos.get(position) instanceof MediaGroup))
mVideos.set(position, item);
notifyItemChanged(position);
} else {
MediaWrapper mw;
......
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