mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue