浏览代码

Merge pull request #4746 from nextcloud/createChooser

use default open chooser with "just once", "always"
Andy Scherzinger 5 年之前
父节点
当前提交
2a43da6bdf
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java

+ 1 - 6
src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java

@@ -323,12 +323,7 @@ public class FileOperationsHelper {
 
 
                                 openFileWithIntent.setFlags(openFileWithIntent.getFlags() |
                                 openFileWithIntent.setFlags(openFileWithIntent.getFlags() |
                                         Intent.FLAG_ACTIVITY_NEW_TASK);
                                         Intent.FLAG_ACTIVITY_NEW_TASK);
-                                fileActivity.startActivity(
-                                        Intent.createChooser(
-                                            openFileWithIntent,
-                                            fileActivity.getString(R.string.actionbar_open_with)
-                                        )
-                                );
+                                fileActivity.startActivity(openFileWithIntent);
                             } catch (ActivityNotFoundException exception) {
                             } catch (ActivityNotFoundException exception) {
                                 DisplayUtils.showSnackMessage(fileActivity, R.string.file_list_no_app_for_file_type);
                                 DisplayUtils.showSnackMessage(fileActivity, R.string.file_list_no_app_for_file_type);
                             }
                             }