mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Always show Bugsnag UUID
This commit is contained in:
parent
77a59439ed
commit
2429f0b26b
2 changed files with 16 additions and 16 deletions
|
@ -285,6 +285,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
? View.GONE : View.VISIBLE);
|
? View.GONE : View.VISIBLE);
|
||||||
swExperiments.setChecked(prefs.getBoolean("experiments", false));
|
swExperiments.setChecked(prefs.getBoolean("experiments", false));
|
||||||
swCrashReports.setChecked(prefs.getBoolean("crash_reports", false));
|
swCrashReports.setChecked(prefs.getBoolean("crash_reports", false));
|
||||||
|
tvUuid.setText(prefs.getString("uuid", null));
|
||||||
swDebug.setChecked(prefs.getBoolean("debug", false));
|
swDebug.setChecked(prefs.getBoolean("debug", false));
|
||||||
|
|
||||||
tvProcessors.setText(getString(R.string.title_advanced_processors, Runtime.getRuntime().availableProcessors()));
|
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,
|
tvStorageSpace.setText(getString(R.string.title_advanced_storage_space,
|
||||||
Helper.humanReadableByteCount(Helper.getStorageSpace(), true)));
|
Helper.humanReadableByteCount(Helper.getStorageSpace(), true)));
|
||||||
|
|
||||||
tvUuid.setText(prefs.getString("uuid", null));
|
|
||||||
|
|
||||||
grpDebug.setVisibility(swDebug.isChecked() || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
grpDebug.setVisibility(swDebug.isChecked() || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,6 +107,19 @@
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvExperimentsHint"
|
app:layout_constraintTop_toBottomOf="@id/tvExperimentsHint"
|
||||||
app:switchPadding="12dp" />
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvUuid"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="48dp"
|
||||||
|
android:fontFamily="monospace"
|
||||||
|
android:text="UUID"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textIsSelectable="true"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/swCrashReports" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
<androidx.appcompat.widget.SwitchCompat
|
||||||
android:id="@+id/swDebug"
|
android:id="@+id/swDebug"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -115,7 +128,7 @@
|
||||||
android:text="@string/title_advanced_debug"
|
android:text="@string/title_advanced_debug"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/swCrashReports"
|
app:layout_constraintTop_toBottomOf="@id/tvUuid"
|
||||||
app:switchPadding="12dp" />
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -208,22 +221,10 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvStorageSpace" />
|
app:layout_constraintTop_toBottomOf="@id/tvStorageSpace" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tvUuid"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:fontFamily="monospace"
|
|
||||||
android:text="UUID"
|
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
||||||
android:textIsSelectable="true"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvLastCleanup" />
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Group
|
<androidx.constraintlayout.widget.Group
|
||||||
android:id="@+id/grpDebug"
|
android:id="@+id/grpDebug"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:constraint_referenced_ids="tvProcessors,tvMemoryClass,tvStorageSpace,tvLastCleanup,tvUuid" />
|
app:constraint_referenced_ids="tvProcessors,tvMemoryClass,tvStorageSpace,tvLastCleanup" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
Loading…
Reference in a new issue