Check if webview exists

This commit is contained in:
M66B
2018-09-12 12:02:27 +00:00
parent 845484fa80
commit b0fa5acf7b
2 changed files with 10 additions and 0 deletions

View File

@@ -124,6 +124,15 @@ public class Helper {
return String.format("%.1f %sB", bytes / Math.pow(unit, exp), pre);
}
static boolean classExists(String className) {
try {
Class.forName(className);
return true;
} catch (ClassNotFoundException ignored) {
return false;
}
}
static Address myAddress() throws UnsupportedEncodingException {
return new InternetAddress("marcel+fairemail@faircode.eu", "FairCode");
}