Fixed bug when turning the device to other position

This commit is contained in:
David A. Velasco 2013-02-25 15:24:37 +01:00
parent cb66b59918
commit 31a31bcf39

View file

@ -109,10 +109,11 @@ public class PreviewImageActivity extends SherlockFragmentActivity implements Fi
// should not be necessary // should not be necessary
mParentFolder = mStorageManager.getFileByPath(OCFile.PATH_SEPARATOR); mParentFolder = mStorageManager.getFileByPath(OCFile.PATH_SEPARATOR);
} }
createViewPager();
if (savedInstanceState == null) { if (savedInstanceState == null) {
mWaitingToPreview = false; mWaitingToPreview = false;
createViewPager();
} else { } else {
mWaitingToPreview = savedInstanceState.getBoolean(KEY_WAITING_TO_PREVIEW); mWaitingToPreview = savedInstanceState.getBoolean(KEY_WAITING_TO_PREVIEW);
} }