diff options
author | Andrew Dolgov <[email protected]> | 2014-10-30 00:46:19 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-10-30 00:46:19 +0300 |
commit | edb99d0ec2276f1387e246adec78024eadd2f5e7 (patch) | |
tree | 289513ffb20918bd390fc0d95fce89e441d292c0 /org.fox.ttrss | |
parent | 11cf49f7a8c0ace5a9ea86755b7e1e341a756a84 (diff) |
fix previous if there's only 1 image
Diffstat (limited to 'org.fox.ttrss')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
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<String>(); if (m_urls.size() > 1) { + m_checkedUrls = new ArrayList<String>(); + ArrayList<String> tmp = new ArrayList<String>(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<String>(m_urls); } setTitle(m_title); |