From a733bef4c11feeab15cc5076f195001232bc414d Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 9 Jun 2016 14:51:42 +0200 Subject: [PATCH] convert ViewPagerFragment to a local variable --- .../com/simplemobiletools/gallery/adapters/MyPagerAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/adapters/MyPagerAdapter.java b/app/src/main/java/com/simplemobiletools/gallery/adapters/MyPagerAdapter.java index 7f73710a5..6847adcb1 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/adapters/MyPagerAdapter.java +++ b/app/src/main/java/com/simplemobiletools/gallery/adapters/MyPagerAdapter.java @@ -17,7 +17,6 @@ import java.util.Map; public class MyPagerAdapter extends FragmentStatePagerAdapter { private List media; - private ViewPagerFragment fragment; private Map fragments; public MyPagerAdapter(FragmentManager fm, List media) { @@ -36,6 +35,7 @@ public class MyPagerAdapter extends FragmentStatePagerAdapter { final Medium medium = media.get(position); final Bundle bundle = new Bundle(); bundle.putSerializable(Constants.MEDIUM, medium); + ViewPagerFragment fragment; if (medium.getIsVideo()) { fragment = new VideoFragment();