Suppress uuid if not reporting

This commit is contained in:
M66B 2021-10-02 16:35:10 +02:00
parent 6524591d89
commit 1caab1c318
1 changed files with 2 additions and 1 deletions

View File

@ -864,6 +864,7 @@ public class Helper {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
String language = prefs.getString("language", null);
boolean reporting = prefs.getBoolean("crash_reports", false);
String uuid = prefs.getString("uuid", null);
Locale slocale = Resources.getSystem().getConfiguration().locale;
@ -873,7 +874,7 @@ public class Helper {
html += "Locale: " + Html.escapeHtml(slocale.toString()) + "<br>";
if (language != null)
html += "Language: " + Html.escapeHtml(language) + "<br>";
if (uuid != null)
if (reporting && uuid != null)
html += "UUID: " + Html.escapeHtml(uuid) + "<br>";
html += "</p>";