Android: Add gallery refresh hack to empty galleries to work around end use-cases
This commit is contained in:
parent
e2a278f13d
commit
28f28525c0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue