|
|
@ -371,16 +371,24 @@ public class Helper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static boolean hasWebView(Context context) {
|
|
|
|
static boolean hasWebView(Context context) {
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
try {
|
|
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW))
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
try {
|
|
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
|
|
|
|
new WebView(context);
|
|
|
|
new WebView(context);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} else
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
else
|
|
|
|
/*
|
|
|
|
|
|
|
|
Caused by: java.lang.RuntimeException: Package manager has died
|
|
|
|
|
|
|
|
at android.app.ApplicationPackageManager.hasSystemFeature(ApplicationPackageManager.java:414)
|
|
|
|
|
|
|
|
at eu.faircode.email.Helper.hasWebView(SourceFile:375)
|
|
|
|
|
|
|
|
at eu.faircode.email.ApplicationEx.onCreate(SourceFile:110)
|
|
|
|
|
|
|
|
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
|
|
|
|
|
|
|
|
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4751)
|
|
|
|
|
|
|
|
*/
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static boolean canPrint(Context context) {
|
|
|
|
static boolean canPrint(Context context) {
|
|
|
|