setting paths for file scheme
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / fragment / FileDetailFragment.java
index 5dbb56e..3e3082c 100644 (file)
@@ -73,8 +73,7 @@ public class FileDetailFragment extends SherlockFragment implements
      * to contain {@link FileDetailFragment#FILE} with an OCFile and also\r
      * {@link FileDownloader#EXTRA_ACCOUNT} with the account.\r
      * \r
      * to contain {@link FileDetailFragment#FILE} with an OCFile and also\r
      * {@link FileDownloader#EXTRA_ACCOUNT} with the account.\r
      * \r
-     * @param nonEmptyFragment\r
-     *            True, to enable file detail rendering\r
+     * @param nonEmptyFragment True, to enable file detail rendering\r
      */\r
     public FileDetailFragment(Intent intent) {\r
         mLayout = R.layout.file_details_fragment;\r
      */\r
     public FileDetailFragment(Intent intent) {\r
         mLayout = R.layout.file_details_fragment;\r
@@ -101,9 +100,8 @@ public class FileDetailFragment extends SherlockFragment implements
     /**\r
      * Use this method to signal this Activity that it shall update its view.\r
      * \r
     /**\r
      * Use this method to signal this Activity that it shall update its view.\r
      * \r
-     * @param intent\r
-     *            The {@link Intent} that contains extra information about this\r
-     *            file The intent needs to have these extras:\r
+     * @param intent The {@link Intent} that contains extra information about\r
+     *            this file The intent needs to have these extras:\r
      *            <p>\r
      * \r
      *            {@link FileDetailFragment#FILE}: An {@link OCFile}\r
      *            <p>\r
      * \r
      *            {@link FileDetailFragment#FILE}: An {@link OCFile}\r
@@ -129,7 +127,7 @@ public class FileDetailFragment extends SherlockFragment implements
             VideoView videoView = (VideoView) mView\r
                     .findViewById(R.id.videoView1);\r
             videoView.setVisibility(View.INVISIBLE);\r
             VideoView videoView = (VideoView) mView\r
                     .findViewById(R.id.videoView1);\r
             videoView.setVisibility(View.INVISIBLE);\r
-            if (mFile.getPath() == null) {\r
+            if (mFile.getStoragePath() == null) {\r
                 ImageView imageView = (ImageView) getView().findViewById(\r
                         R.id.imageView2);\r
                 imageView.setImageResource(R.drawable.download);\r
                 ImageView imageView = (ImageView) getView().findViewById(\r
                         R.id.imageView2);\r
                 imageView.setImageResource(R.drawable.download);\r
@@ -138,11 +136,11 @@ public class FileDetailFragment extends SherlockFragment implements
                 if (mFile.getMimetype().startsWith("image/")) {\r
                     ImageView imageView = (ImageView) mView\r
                             .findViewById(R.id.imageView2);\r
                 if (mFile.getMimetype().startsWith("image/")) {\r
                     ImageView imageView = (ImageView) mView\r
                             .findViewById(R.id.imageView2);\r
-                    Bitmap bmp = BitmapFactory.decodeFile(mFile.getPath());\r
+                    Bitmap bmp = BitmapFactory.decodeFile(mFile.getStoragePath());\r
                     imageView.setImageBitmap(bmp);\r
                 } else if (mFile.getMimetype().startsWith("video/")) {\r
                     videoView.setVisibility(View.VISIBLE);\r
                     imageView.setImageBitmap(bmp);\r
                 } else if (mFile.getMimetype().startsWith("video/")) {\r
                     videoView.setVisibility(View.VISIBLE);\r
-                    videoView.setVideoPath(mFile.getPath());\r
+                    videoView.setVideoPath(mFile.getStoragePath());\r
                     videoView.start();\r
                 }\r
             }\r
                     videoView.start();\r
                 }\r
             }\r