From 1781ffc25b2e0aa8f65ba140c01f1ffa3a01a3a7 Mon Sep 17 00:00:00 2001 From: Floens Date: Wed, 13 May 2015 00:08:19 +0200 Subject: [PATCH] Fix image opening from reply popups --- .../floens/chan/ui/controller/PostRepliesController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Clover/app/src/main/java/org/floens/chan/ui/controller/PostRepliesController.java b/Clover/app/src/main/java/org/floens/chan/ui/controller/PostRepliesController.java index de811be8..896d652d 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/controller/PostRepliesController.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/controller/PostRepliesController.java @@ -87,11 +87,11 @@ public class PostRepliesController extends Controller { ThumbnailView thumbnail = null; for (int i = 0; i < listView.getChildCount(); i++) { View view = listView.getChildAt(i); - if (view instanceof PostView) { - PostView postView = (PostView) view; + if (view instanceof PostCell) { + PostCell postView = (PostCell) view; Post post = postView.getPost(); if (post.hasImage && post.imageUrl.equals(postImage.imageUrl)) { - thumbnail = postView.getThumbnail(); + thumbnail = postView.getThumbnailView(); break; } }