Optimize scrollToImage position search.

multisite
Floens 9 years ago
parent 13ade25121
commit 4f7f06a719
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java

@ -317,7 +317,7 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt
List<Post> posts = threadPresenterCallback.getDisplayingPosts(); List<Post> posts = threadPresenterCallback.getDisplayingPosts();
for (int i = 0; i < posts.size(); i++) { for (int i = 0; i < posts.size(); i++) {
Post post = posts.get(i); Post post = posts.get(i);
if (post.hasImage && post.imageUrl.equals(postImage.imageUrl)) { if (post.hasImage && post.image == postImage) {
position = i; position = i;
break; break;
} }

Loading…
Cancel
Save