|
|
@ -157,6 +157,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
|
|
|
|
|
|
public class Helper {
|
|
|
|
public class Helper {
|
|
|
|
|
|
|
|
private static Boolean hasWebView = null;
|
|
|
|
private static Boolean hasPlayStore = null;
|
|
|
|
private static Boolean hasPlayStore = null;
|
|
|
|
private static Boolean hasValidFingerprint = null;
|
|
|
|
private static Boolean hasValidFingerprint = null;
|
|
|
|
|
|
|
|
|
|
|
@ -410,6 +411,12 @@ public class Helper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static boolean hasWebView(Context context) {
|
|
|
|
static boolean hasWebView(Context context) {
|
|
|
|
|
|
|
|
if (hasWebView == null)
|
|
|
|
|
|
|
|
hasWebView = _hasWebView(context);
|
|
|
|
|
|
|
|
return hasWebView;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static boolean _hasWebView(Context context) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
|
|
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
|
|
|
|