Android: Add gallery refresh hack to empty galleries to work around end use-cases

This commit is contained in:
Amit Davidi 2017-03-19 12:11:16 +02:00
parent e2a278f13d
commit 28f28525c0
1 changed files with 2 additions and 2 deletions

View File

@ -303,9 +303,9 @@ public class GalleryAdapter extends RecyclerView.Adapter<GalleryAdapter.AbsViewH
notifyItemRangeInserted(0, postCount);
} else {
view.swapAdapter(GalleryAdapter.this, true);
}
// http://stackoverflow.com/a/42549611/453052
view.scrollBy(0, 0);
}
} else {
view.postDelayed(new Runnable() {
@Override