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