fix picture deleting

This commit is contained in:
tibbi 2016-04-25 20:58:19 +02:00
parent 6af43c0b81
commit 86a0495a2f

View file

@ -21,7 +21,8 @@ public class ViewPagerFragment extends Fragment implements View.OnClickListener
@Override @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.pager_item, container, false); final View view = inflater.inflate(R.layout.pager_item, container, false);
if (savedInstanceState != null) {
if (path == null && savedInstanceState != null) {
path = savedInstanceState.getString(PATH); path = savedInstanceState.getString(PATH);
} }