Fix image opening from reply popups

filtering
Floens 10 years ago
parent b5b9c99b6d
commit 1781ffc25b
  1. 6
      Clover/app/src/main/java/org/floens/chan/ui/controller/PostRepliesController.java

@ -87,11 +87,11 @@ public class PostRepliesController extends Controller {
ThumbnailView thumbnail = null; ThumbnailView thumbnail = null;
for (int i = 0; i < listView.getChildCount(); i++) { for (int i = 0; i < listView.getChildCount(); i++) {
View view = listView.getChildAt(i); View view = listView.getChildAt(i);
if (view instanceof PostView) { if (view instanceof PostCell) {
PostView postView = (PostView) view; PostCell postView = (PostCell) view;
Post post = postView.getPost(); Post post = postView.getPost();
if (post.hasImage && post.imageUrl.equals(postImage.imageUrl)) { if (post.hasImage && post.imageUrl.equals(postImage.imageUrl)) {
thumbnail = postView.getThumbnail(); thumbnail = postView.getThumbnailView();
break; break;
} }
} }

Loading…
Cancel
Save