mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 00:51:44 +01:00
Choose browse action
This commit is contained in:
@@ -119,11 +119,7 @@ public class Helper {
|
||||
|
||||
if (browse) {
|
||||
Intent view = new Intent(Intent.ACTION_VIEW, uri);
|
||||
PackageManager pm = context.getPackageManager();
|
||||
if (view.resolveActivity(pm) == null)
|
||||
Toast.makeText(context, context.getString(R.string.title_no_viewer, uri.toString()), Toast.LENGTH_LONG).show();
|
||||
else
|
||||
context.startActivity(view);
|
||||
context.startActivity(getChooser(context, view));
|
||||
} else {
|
||||
// https://developer.chrome.com/multidevice/android/customtabs
|
||||
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
|
||||
|
||||
Reference in New Issue
Block a user