Debug: small improvement

pull/214/head
M66B 8 months ago
parent 5c00c77dfe
commit 9f829dcec8

@ -275,10 +275,9 @@ public class DebugHelper {
sb.append(String.format("MIUI: %s\r\n", miui == null ? "-" : miui)); sb.append(String.format("MIUI: %s\r\n", miui == null ? "-" : miui));
boolean reporting = prefs.getBoolean("crash_reports", false); boolean reporting = prefs.getBoolean("crash_reports", false);
if (reporting || Log.isTestRelease()) { String uuid = (reporting || Log.isTestRelease()
String uuid = prefs.getString("uuid", null); ? prefs.getString("uuid", null) : null);
sb.append(String.format("Bugsnag UUID: %s\r\n", uuid == null ? "-" : uuid)); sb.append(String.format("Bugsnag UUID: %s\r\n", uuid == null ? "-" : uuid));
}
try { try {
ApplicationInfo app = pm.getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA); ApplicationInfo app = pm.getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);

Loading…
Cancel
Save