From edb99d0ec2276f1387e246adec78024eadd2f5e7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 30 Oct 2014 00:46:19 +0300 Subject: [PATCH] fix previous if there's only 1 image --- .../main/java/org/fox/ttrss/ArticleImagesPagerActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java index 975b97b7..2f53275b 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java @@ -208,9 +208,10 @@ public class ArticleImagesPagerActivity extends CommonActivity { m_title = savedInstanceState.getString("title"); } - m_checkedUrls = new ArrayList(); if (m_urls.size() > 1) { + m_checkedUrls = new ArrayList(); + ArrayList tmp = new ArrayList(m_urls); m_checkedUrls.add(tmp.get(0)); @@ -218,6 +219,8 @@ public class ArticleImagesPagerActivity extends CommonActivity { ImageCheckTask ict = new ImageCheckTask(); ict.execute(tmp); + } else { + m_checkedUrls = new ArrayList(m_urls); } setTitle(m_title);