MIUI autostart

This commit is contained in:
M66B
2023-08-30 18:45:07 +02:00
parent 7b3ad21639
commit d9e42c2126
2 changed files with 10 additions and 7 deletions

View File

@@ -2005,9 +2005,10 @@ public class Log {
Build.VERSION.RELEASE, Build.VERSION.SDK_INT, Helper.getTargetSdk(context)));
String miui = Helper.getMIUIVersion();
boolean autostart = (miui != null && Helper.getMIUIAutostart(context));
sb.append(String.format("MIUI: %s autostart=%b\r\n",
miui == null ? "-" : miui, autostart));
Integer autostart = (miui == null ? null : Helper.getMIUIAutostart(context));
sb.append(String.format("MIUI: %s autostart: %s\r\n",
miui == null ? "-" : miui,
autostart == null ? "?" : Boolean.toString(autostart == 0)));
boolean reporting = prefs.getBoolean("crash_reports", false);
if (reporting || BuildConfig.TEST_RELEASE) {