mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Open with as new task
This commit is contained in:
@@ -483,11 +483,17 @@ public class Helper {
|
||||
}
|
||||
|
||||
static void view(Context context, Uri uri, boolean browse) {
|
||||
view(context, uri, browse, false);
|
||||
}
|
||||
|
||||
static void view(Context context, Uri uri, boolean browse, boolean task) {
|
||||
Log.i("View=" + uri);
|
||||
|
||||
if (browse || !hasCustomTabs(context, uri)) {
|
||||
try {
|
||||
Intent view = new Intent(Intent.ACTION_VIEW, uri);
|
||||
if (task)
|
||||
view.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
context.startActivity(getChooser(context, view));
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
||||
Reference in New Issue
Block a user