AMP requires WebView

This commit is contained in:
M66B
2022-02-14 10:38:07 +01:00
parent cff26bfc69
commit 363d0ad89f
2 changed files with 10 additions and 1 deletions

View File

@@ -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)) {