fix picture deleting

This commit is contained in:
tibbi 2016-04-25 20:58:19 +02:00
parent 6af43c0b81
commit 86a0495a2f
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}