Browse Source

Fix back navigation after viewing a file

Lennart Rosam 13 years ago
parent
commit
9df38b7379
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/eu/alefzero/owncloud/ui/fragment/FileListFragment.java

+ 2 - 2
src/eu/alefzero/owncloud/ui/fragment/FileListFragment.java

@@ -95,12 +95,12 @@ public class FileListFragment extends FragmentListView {
             throw new IndexOutOfBoundsException("Incorrect item selected");
         }
         OCFile file = mFiles.get(position);
-        mFile = file;
         
         // Update ActionBarPath
         if (file.getMimetype().equals("DIR")) {
             String dirname = file.getFileName();
-
+            mFile = file;
+            
             mDirNames.push(dirname);
             ((FileDisplayActivity) getActivity()).pushPath(dirname);