Merge pull request #2734 from deltachat/adb/issue-2733

use more permissive mime type in key selection
This commit is contained in:
Asiel Díaz Benítez
2023-10-11 09:38:16 -04:00
committed by GitHub
@@ -373,7 +373,7 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
}
else {
if (Build.VERSION.SDK_INT >= 30) {
AttachmentManager.selectMediaType(getActivity(), "application/pgp-keys", new String[]{"text/plain"}, PICK_SELF_KEYS, StorageUtil.getDownloadUri());
AttachmentManager.selectMediaType(getActivity(), "*/*", null, PICK_SELF_KEYS, StorageUtil.getDownloadUri());
} else {
String path = DcHelper.getImexDir().getAbsolutePath();
showImportKeysDialog(path, path);