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

@ -119,12 +119,14 @@ public class GalleryAdapter extends RecyclerView.Adapter<GalleryAdapter.StupidHo
Collections.reverse(ids); Collections.reverse(ids);
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;
} }
}); });
} }