From b36d06aafa670b04b3ead7f3449998add0fed1af Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 6 Jun 2016 00:09:03 +0200 Subject: [PATCH] properly open the video item at viewpager --- .../simplemobiletools/gallery/activities/ViewPagerActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c4db212ac..9e2713833 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java @@ -249,6 +249,7 @@ public class ViewPagerActivity extends AppCompatActivity private List getMedia() { final List media = new ArrayList<>(); + int j = 0; for (int i = 0; i < 2; i++) { Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; if (i == 1) { @@ -261,7 +262,6 @@ public class ViewPagerActivity extends AppCompatActivity final Cursor cursor = getContentResolver().query(uri, columns, where, args, order); final String pattern = Pattern.quote(directory) + "/[^/]*"; - int j = 0; if (cursor != null && cursor.moveToFirst()) { final int pathIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA); do {