Android - Make gallery view to refresh correctly

This commit is contained in:
Ran Greenberg 2016-08-09 12:27:23 +03:00
parent 2d3fdcc80a
commit 576d7bd444
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
});
}