X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/435b31ba4f3597cc7a43270cd4a54fb0180956c1..4c1ca7dc4874ef10a30929ee059c274f5214030b:/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java diff --git a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java index 5dbb56eb..3e3082cd 100644 --- a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java +++ b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java @@ -73,8 +73,7 @@ public class FileDetailFragment extends SherlockFragment implements * to contain {@link FileDetailFragment#FILE} with an OCFile and also * {@link FileDownloader#EXTRA_ACCOUNT} with the account. * - * @param nonEmptyFragment - * True, to enable file detail rendering + * @param nonEmptyFragment True, to enable file detail rendering */ public FileDetailFragment(Intent intent) { mLayout = R.layout.file_details_fragment; @@ -101,9 +100,8 @@ public class FileDetailFragment extends SherlockFragment implements /** * Use this method to signal this Activity that it shall update its view. * - * @param intent - * The {@link Intent} that contains extra information about this - * file The intent needs to have these extras: + * @param intent The {@link Intent} that contains extra information about + * this file The intent needs to have these extras: *

* * {@link FileDetailFragment#FILE}: An {@link OCFile} @@ -129,7 +127,7 @@ public class FileDetailFragment extends SherlockFragment implements VideoView videoView = (VideoView) mView .findViewById(R.id.videoView1); videoView.setVisibility(View.INVISIBLE); - if (mFile.getPath() == null) { + if (mFile.getStoragePath() == null) { ImageView imageView = (ImageView) getView().findViewById( R.id.imageView2); imageView.setImageResource(R.drawable.download); @@ -138,11 +136,11 @@ public class FileDetailFragment extends SherlockFragment implements if (mFile.getMimetype().startsWith("image/")) { ImageView imageView = (ImageView) mView .findViewById(R.id.imageView2); - Bitmap bmp = BitmapFactory.decodeFile(mFile.getPath()); + Bitmap bmp = BitmapFactory.decodeFile(mFile.getStoragePath()); imageView.setImageBitmap(bmp); } else if (mFile.getMimetype().startsWith("video/")) { videoView.setVisibility(View.VISIBLE); - videoView.setVideoPath(mFile.getPath()); + videoView.setVideoPath(mFile.getStoragePath()); videoView.start(); } }