From: tobiasKaminsky Date: Fri, 30 Oct 2015 11:52:12 +0000 (+0100) Subject: fixed #1230 X-Git-Tag: beta-20151122~72 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/b5ffd5cd7cdd1b08cd11478ff0affb763af1fb4d?hp=-c fixed #1230 --- b5ffd5cd7cdd1b08cd11478ff0affb763af1fb4d diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index 12ddc68d..c639525e 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -492,10 +492,11 @@ public class OCFileListFragment extends ExtendedListFragment { } else { mContainerActivity.getFileOperationsHelper().openFile(file); } - + } else { + // automatic download, preview on finish + ((FileDisplayActivity) mContainerActivity).startDownloadForPreview(file); } } - } else { Log_OC.d(TAG, "Null object in ListAdapter!!"); }