mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-06-25 07:02:49 +00:00
Fix first gallery image not loading.
This commit is contained in:
@ -93,8 +93,10 @@ public class PostGalleryTypeImageRecyclerViewAdapter extends RecyclerView.Adapte
|
||||
holder.binding.imageViewItemGalleryImageInPostFeed.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
|
||||
@Override
|
||||
public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
|
||||
holder.binding.imageViewItemGalleryImageInPostFeed.removeOnLayoutChangeListener(this);
|
||||
loadImage(holder);
|
||||
v.removeOnLayoutChangeListener(this);
|
||||
v.post(() -> {
|
||||
loadImage(holder);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user