mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 16:40:53 +01:00
Workaround for default intent chooser bug
This commit is contained in:
@@ -500,7 +500,7 @@ public class FragmentSetup extends FragmentEx {
|
||||
private void onMenuExport() {
|
||||
if (Helper.isPro(getContext()))
|
||||
try {
|
||||
startActivityForResult(getIntentExport(), ActivitySetup.REQUEST_EXPORT);
|
||||
startActivityForResult(Helper.getChooser(getContext(), getIntentExport()), ActivitySetup.REQUEST_EXPORT);
|
||||
} catch (Throwable ex) {
|
||||
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
||||
}
|
||||
@@ -513,7 +513,7 @@ public class FragmentSetup extends FragmentEx {
|
||||
|
||||
private void onMenuImport() {
|
||||
try {
|
||||
startActivityForResult(getIntentImport(), ActivitySetup.REQUEST_IMPORT);
|
||||
startActivityForResult(Helper.getChooser(getContext(), getIntentImport()), ActivitySetup.REQUEST_IMPORT);
|
||||
} catch (Throwable ex) {
|
||||
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user