mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Fixed bug when turning the device to other position
This commit is contained in:
parent
cb66b59918
commit
31a31bcf39
1 changed files with 3 additions and 2 deletions
|
@ -109,10 +109,11 @@ public class PreviewImageActivity extends SherlockFragmentActivity implements Fi
|
|||
// should not be necessary
|
||||
mParentFolder = mStorageManager.getFileByPath(OCFile.PATH_SEPARATOR);
|
||||
}
|
||||
|
||||
|
||||
createViewPager();
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
mWaitingToPreview = false;
|
||||
createViewPager();
|
||||
} else {
|
||||
mWaitingToPreview = savedInstanceState.getBoolean(KEY_WAITING_TO_PREVIEW);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue