From 2429f0b26bdbc8f7eac943006449e79822781050 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 8 Nov 2019 12:17:07 +0100 Subject: [PATCH] Always show Bugsnag UUID --- .../faircode/email/FragmentOptionsMisc.java | 3 +- .../main/res/layout/fragment_options_misc.xml | 29 ++++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index 3a84482171..2bd2e237e9 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -285,6 +285,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc ? View.GONE : View.VISIBLE); swExperiments.setChecked(prefs.getBoolean("experiments", false)); swCrashReports.setChecked(prefs.getBoolean("crash_reports", false)); + tvUuid.setText(prefs.getString("uuid", null)); swDebug.setChecked(prefs.getBoolean("debug", false)); tvProcessors.setText(getString(R.string.title_advanced_processors, Runtime.getRuntime().availableProcessors())); @@ -296,8 +297,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc tvStorageSpace.setText(getString(R.string.title_advanced_storage_space, Helper.humanReadableByteCount(Helper.getStorageSpace(), true))); - tvUuid.setText(prefs.getString("uuid", null)); - grpDebug.setVisibility(swDebug.isChecked() || BuildConfig.DEBUG ? View.VISIBLE : View.GONE); } diff --git a/app/src/main/res/layout/fragment_options_misc.xml b/app/src/main/res/layout/fragment_options_misc.xml index 2d0be6a6b2..a989cddb5b 100644 --- a/app/src/main/res/layout/fragment_options_misc.xml +++ b/app/src/main/res/layout/fragment_options_misc.xml @@ -107,6 +107,19 @@ app:layout_constraintTop_toBottomOf="@id/tvExperimentsHint" app:switchPadding="12dp" /> + + - - + app:constraint_referenced_ids="tvProcessors,tvMemoryClass,tvStorageSpace,tvLastCleanup" />