Debug: small improvement

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

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

Loading…
Cancel
Save