浏览代码

Merge pull request #2884 from nextcloud/newTask

Opens file in new task
Andy Scherzinger 6 年之前
父节点
当前提交
c2f0a72ce5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java

+ 2 - 0
src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java

@@ -283,6 +283,8 @@ public class FileOperationsHelper {
                                     }
                                 }
 
+                                openFileWithIntent.setFlags(openFileWithIntent.getFlags() |
+                                        Intent.FLAG_ACTIVITY_NEW_TASK);
                                 mFileActivity.startActivity(
                                         Intent.createChooser(
                                                 openFileWithIntent,