From a7bddc9a984f7a7390101b6472405c002cd35b7f Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 30 Aug 2023 12:30:22 +0200 Subject: [PATCH] Debug info: fixed crash --- 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 cb74a8f893..c9da87fbee 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -1618,7 +1618,7 @@ public class Helper { } } - static Boolean getMIUIAutostart(Context context) { + static boolean getMIUIAutostart(Context context) { try { Class c = Class.forName("android.miui.AppOpsUtils"); Method m = c.getDeclaredMethod("getApplicationAutoStart", Context.class, String.class); @@ -1627,7 +1627,7 @@ public class Helper { return (result != null && result.equals(0)); } catch (Throwable ex) { Log.w(ex); - return null; + return false; } }