From 732fa20cb5cb670ab87d101c314439715e763809 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 27 Feb 2016 13:33:06 +0100 Subject: [PATCH] make sure we open the correct photo on fullscreen --- .../gallery/activities/ViewPagerActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java index 07ddbd0a0..98e397599 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java @@ -110,9 +110,9 @@ public class ViewPagerActivity extends AppCompatActivity implements ViewPager.On if (curPath.equals(path)) pos = i; - } - i++; + i++; + } } while (cursor.moveToNext()); cursor.close(); }