From 09113bb2c895dcfeebb5276192d15eff8710d1ee Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 6 Apr 2019 15:22:40 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/Helper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index bd1aa7ec48..3b4fe6aaab 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -1024,7 +1024,7 @@ public class Helper { static boolean hasWebView(Context context) { PackageManager pm = context.getPackageManager(); - if (pm.hasSystemFeature("android.software.webview")) + if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) try { new WebView(context); return true; @@ -1037,7 +1037,7 @@ public class Helper { static boolean canPrint(Context context) { PackageManager pm = context.getPackageManager(); - return pm.hasSystemFeature("android.software.print"); + return pm.hasSystemFeature(PackageManager.FEATURE_PRINTING); } public static String getFingerprint(Context context) {