1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

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

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");