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();
|
cursor.close();
|
||||||
|
|
||||||
|
refreshing = false;
|
||||||
|
|
||||||
view.post(new Runnable() {
|
view.post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
refreshing = false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue