mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Open link chooser
This commit is contained in:
@@ -916,7 +916,16 @@ public class Helper {
|
||||
" task=" + task +
|
||||
" pkg=" + open_with_pkg + ":" + open_with_tabs);
|
||||
|
||||
if (browse || !open_with_tabs) {
|
||||
if ("chooser".equals(open_with_pkg)) {
|
||||
Intent view = new Intent(Intent.ACTION_VIEW, uri);
|
||||
Intent chooser = Intent.createChooser(view, context.getString(R.string.title_select_app));
|
||||
try {
|
||||
context.startActivity(chooser);
|
||||
} catch (ActivityNotFoundException ex) {
|
||||
Log.w(ex);
|
||||
reportNoViewer(context, uri, ex);
|
||||
}
|
||||
} else if (browse || !open_with_tabs) {
|
||||
try {
|
||||
Intent view = new Intent(Intent.ACTION_VIEW);
|
||||
if (mimeType == null)
|
||||
|
||||
Reference in New Issue
Block a user