mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-08-18 02:51:58 +00:00
Fix wrong image being shown after clicking a gallery item in PostGalleryGalleryTypeViewHolder.
This commit is contained in:
@ -4719,7 +4719,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
|
||||
if (post.getPostType() == Post.TEXT_TYPE || !mSharedPreferences.getBoolean(SharedPreferencesUtils.CLICK_TO_SHOW_MEDIA_IN_GALLERY_LAYOUT, false)) {
|
||||
openViewPostDetailActivity(post, getBindingAdapterPosition());
|
||||
} else {
|
||||
openMedia(post, layoutManager.findFirstVisibleItemPosition());
|
||||
openMedia(post, layoutManager.findFirstVisibleItemPosition(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4735,7 +4735,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
|
||||
if (post.getPostType() == Post.TEXT_TYPE || mSharedPreferences.getBoolean(SharedPreferencesUtils.CLICK_TO_SHOW_MEDIA_IN_GALLERY_LAYOUT, false)) {
|
||||
openViewPostDetailActivity(post, getBindingAdapterPosition());
|
||||
} else {
|
||||
openMedia(post, layoutManager.findFirstVisibleItemPosition());
|
||||
openMedia(post, layoutManager.findFirstVisibleItemPosition(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user