X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/bea36f23b0a22070891f534fa9007d0548d04e37..c6edcab5a2f81773f05b8f796f2c356c2c2aeb4d:/src/com/owncloud/android/ui/preview/PreviewImageFragment.java diff --git a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java index 41edc244..eb8af268 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -1,5 +1,5 @@ /* ownCloud Android client application - * Copyright (C) 2012-2013 ownCloud Inc. + * Copyright (C) 2012-2014 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, @@ -161,19 +161,21 @@ ConfirmationDialogFragment.ConfirmationDialogFragmentListener { if (savedInstanceState != null) { if (!mIgnoreFirstSavedState) { OCFile file = (OCFile)savedInstanceState.getParcelable(PreviewImageFragment.EXTRA_FILE); + setFile(file); mAccount = savedInstanceState.getParcelable(PreviewImageFragment.EXTRA_ACCOUNT); - - // Update the file - if (mAccount!= null) { - OCFile updatedFile = mContainerActivity.getStorageManager().getFileByPath(file.getRemotePath()); - if (updatedFile != null) { - setFile(updatedFile); - } else { - setFile(file); - } - } else { - setFile(file); - } +// TODO remove this code: update file no needed +// // Update the file +//// if (mAccount!= null) { +// OCFile updatedFile = +// mContainerActivity.getStorageManager().getFileByPath(file.getRemotePath()); +// if (updatedFile != null) { +// setFile(updatedFile); +// } else { +// setFile(file); +// } +// } else { +// setFile(file); +// } } else { mIgnoreFirstSavedState = false;