uuid is useful only when reporting is enabled

This commit is contained in:
M66B 2019-06-25 19:58:50 +02:00
parent 45c01d39a4
commit 965dfdb84b
1 changed files with 5 additions and 3 deletions

View File

@ -270,9 +270,11 @@ public class Log {
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
String uuid = prefs.getString("uuid", null);
sb.append(String.format("UUID: %s\r\n", uuid == null ? "-" : uuid));
boolean reporting = prefs.getBoolean("crash_reports", false);
if (reporting) {
String uuid = prefs.getString("uuid", null);
sb.append(String.format("UUID: %s\r\n", uuid == null ? "-" : uuid));
}
sb.append("\r\n");