projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed ClassCastingException
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
ui
/
fragment
/
FilePreviewFragment.java
diff --git
a/src/com/owncloud/android/ui/fragment/FilePreviewFragment.java
b/src/com/owncloud/android/ui/fragment/FilePreviewFragment.java
index
b4c1d43
..
e95c7d1
100644
(file)
--- a/
src/com/owncloud/android/ui/fragment/FilePreviewFragment.java
+++ b/
src/com/owncloud/android/ui/fragment/FilePreviewFragment.java
@@
-1039,8
+1039,7
@@
public class FilePreviewFragment extends SherlockFragment implements
* @return 'True' if the file can be handled by the fragment.
*/
public static boolean canBePreviewed(OCFile file) {
* @return 'True' if the file can be handled by the fragment.
*/
public static boolean canBePreviewed(OCFile file) {
- return (file != null && file.isDown() &&
- (file.isAudio() || file.isVideo() || file.isImage()));
+ return (file != null && (file.isAudio() || file.isVideo() || file.isImage()));
}
/**
}
/**