瀏覽代碼

Fix back navigation after viewing a file

Lennart Rosam 13 年之前
父節點
當前提交
9df38b7379
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);