mirror of https://github.com/M66B/FairEmail.git
Skip chooser on open link
This commit is contained in:
parent
dc6cab7edb
commit
4e0ed9ee61
|
@ -528,7 +528,10 @@ public class Helper {
|
||||||
Intent view = new Intent(Intent.ACTION_VIEW, uri);
|
Intent view = new Intent(Intent.ACTION_VIEW, uri);
|
||||||
if (task)
|
if (task)
|
||||||
view.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
view.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
context.startActivity(getChooser(context, view));
|
context.startActivity(view);
|
||||||
|
} catch (ActivityNotFoundException ex) {
|
||||||
|
Log.w(ex);
|
||||||
|
ToastEx.makeText(context, context.getString(R.string.title_no_viewer, uri), Toast.LENGTH_LONG).show();
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
ToastEx.makeText(context, Log.formatThrowable(ex, false), Toast.LENGTH_LONG).show();
|
ToastEx.makeText(context, Log.formatThrowable(ex, false), Toast.LENGTH_LONG).show();
|
||||||
|
|
Loading…
Reference in New Issue