Added error reporting info button

This commit is contained in:
M66B 2023-09-23 21:49:29 +02:00
parent 0b3a146912
commit cc7fa83361
2 changed files with 20 additions and 1 deletions

View File

@ -136,6 +136,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private TextView tvAnnouncementsPrivacy;
private SwitchCompat swCrashReports;
private TextView tvUuid;
private ImageButton ibCrashReports;
private Button btnReset;
private SwitchCompat swCleanupAttachments;
private Button btnCleanup;
@ -394,6 +395,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
tvAnnouncementsPrivacy = view.findViewById(R.id.tvAnnouncementsPrivacy);
swCrashReports = view.findViewById(R.id.swCrashReports);
tvUuid = view.findViewById(R.id.tvUuid);
ibCrashReports = view.findViewById(R.id.ibCrashReports);
btnReset = view.findViewById(R.id.btnReset);
swCleanupAttachments = view.findViewById(R.id.swCleanupAttachments);
btnCleanup = view.findViewById(R.id.btnCleanup);
@ -831,6 +833,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
});
ibCrashReports.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 104);
}
});
btnReset.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

View File

@ -477,6 +477,16 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swCrashReports" />
<ImageButton
android:id="@+id/ibCrashReports"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/title_info"
android:tooltipText="@string/title_info"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvUuid"
app:srcCompat="@drawable/twotone_info_24" />
<Button
android:id="@+id/btnReset"
style="?android:attr/buttonStyleSmall"
@ -487,7 +497,7 @@
android:drawablePadding="6dp"
android:text="@string/title_setup_reset_questions"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvUuid" />
app:layout_constraintTop_toBottomOf="@id/ibCrashReports" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swCleanupAttachments"