mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Use chooser
This commit is contained in:
@@ -1339,7 +1339,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
snackbar.show();
|
||||
} else
|
||||
try {
|
||||
startActivityForResult(intent, REQUEST_RECORD_AUDIO);
|
||||
startActivityForResult(Helper.getChooser(getContext(), intent), REQUEST_RECORD_AUDIO);
|
||||
} catch (SecurityException ex) {
|
||||
Log.w(ex);
|
||||
Snackbar.make(view, getString(R.string.title_no_viewer, intent.getAction()), Snackbar.LENGTH_INDEFINITE).show();
|
||||
@@ -1368,7 +1368,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
try {
|
||||
photoURI = FileProvider.getUriForFile(getContext(), BuildConfig.APPLICATION_ID, file);
|
||||
intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
|
||||
startActivityForResult(intent, REQUEST_TAKE_PHOTO);
|
||||
startActivityForResult(Helper.getChooser(getContext(), intent), REQUEST_TAKE_PHOTO);
|
||||
} catch (SecurityException ex) {
|
||||
Log.w(ex);
|
||||
Snackbar.make(view, getString(R.string.title_no_viewer, intent.getAction()), Snackbar.LENGTH_LONG).show();
|
||||
|
||||
Reference in New Issue
Block a user