X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/49eda7d30fcacc017209667f6bf4569f41f4ed42..5f61cb15552eb2fda01716078a9191b88cebf764:/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java diff --git a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java index 3310ff46..47dae5fa 100644 --- a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java @@ -214,6 +214,7 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements } popDirname(); mFileList.onNavigateUp(); + mCurrentDir = mFileList.getCurrentFile(); } @Override @@ -274,6 +275,9 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements if(!mCurrentDir.isDirectory()){ mCurrentDir = mStorageManager.getFileById(mCurrentDir.getParentId()); } + + // Clear intent extra, so rotating the screen will not return us to this directory + getIntent().removeExtra(FileDetailFragment.EXTRA_FILE); } // Drop-Down navigation and file list restore