Эх сурвалжийг харах

use default open chooser with "just once", "always"

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 жил өмнө
parent
commit
12fe91a6dd

+ 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);
                             }
                             }