Android - Make gallery view to refresh correctly
This commit is contained in:
parent
2d3fdcc80a
commit
576d7bd444
|
@ -119,12 +119,14 @@ public class GalleryAdapter extends RecyclerView.Adapter<GalleryAdapter.StupidHo
|
|||
Collections.reverse(ids);
|
||||
|
||||
cursor.close();
|
||||
|
||||
refreshing = false;
|
||||
|
||||
view.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
notifyDataSetChanged();
|
||||
refreshing = false;
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue