From 86a0495a2f0dca70607f3bcd02b35a216d010df7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 25 Apr 2016 20:58:19 +0200 Subject: [PATCH] fix picture deleting --- .../java/com/simplemobiletools/gallery/ViewPagerFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java b/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java index 8d43b27e3..2e2d0501f 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java +++ b/app/src/main/java/com/simplemobiletools/gallery/ViewPagerFragment.java @@ -21,7 +21,8 @@ public class ViewPagerFragment extends Fragment implements View.OnClickListener @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.pager_item, container, false); - if (savedInstanceState != null) { + + if (path == null && savedInstanceState != null) { path = savedInstanceState.getString(PATH); }