mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
AMP requires WebView
This commit is contained in:
@@ -157,6 +157,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class Helper {
|
||||
private static Boolean hasWebView = null;
|
||||
private static Boolean hasPlayStore = null;
|
||||
private static Boolean hasValidFingerprint = null;
|
||||
|
||||
@@ -410,6 +411,12 @@ public class Helper {
|
||||
}
|
||||
|
||||
static boolean hasWebView(Context context) {
|
||||
if (hasWebView == null)
|
||||
hasWebView = _hasWebView(context);
|
||||
return hasWebView;
|
||||
}
|
||||
|
||||
private static boolean _hasWebView(Context context) {
|
||||
try {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
|
||||
|
||||
Reference in New Issue
Block a user