Integrate crash reporting (#418)
Disable minify to get proper logs Enable it by default Integrate crash reporting Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/418 Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/primaryBackgroundColor" >
|
||||
android:background="?attr/primaryBackgroundColor">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
@ -60,6 +60,20 @@
|
||||
android:id="@+id/langLayout"
|
||||
layout="@layout/settings_languages" />
|
||||
|
||||
<View
|
||||
android:id="@+id/crashReportsDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginStart="44dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_below="@id/langLayout" />
|
||||
|
||||
<include
|
||||
android:id="@+id/reportingLayout"
|
||||
layout="@layout/settings_reporting" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
@ -23,15 +23,14 @@
|
||||
android:id="@+id/pdfMode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="vertical">
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pdfModeHeader"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginStart="44dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:text="@string/settingsPdfModeHeaderText"
|
||||
|
@ -55,7 +55,6 @@
|
||||
android:layout_marginEnd="4dp"
|
||||
android:autoLink="web"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:text="@string/settingsHelpTranslateText"
|
||||
android:textColor="@color/lightBlue"/>
|
||||
|
||||
|
52
app/src/main/res/layout/settings_reporting.xml
Normal file
52
app/src/main/res/layout/settings_reporting.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/layoutReportingView"
|
||||
android:orientation="vertical"
|
||||
android:layout_below="@+id/crashReportsDivider"
|
||||
android:background="?attr/primaryBackgroundColor">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reportViewAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:drawableStart="@drawable/ic_bug_report"
|
||||
android:drawablePadding="20dp"
|
||||
android:text="@string/reportViewerHeader"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/colorDarkGreen"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/enableSendReports"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/enableReportsHeader"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginStart="44dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:text="@string/settingsEnableReportsText"
|
||||
android:textColor="?attr/primaryTextColor"/>
|
||||
|
||||
<Switch
|
||||
android:id="@+id/crashReportsSwitch"
|
||||
android:layout_toEndOf="@+id/enableReportsHeader"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:switchMinWidth="56dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:gravity="end"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginBottom="30dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
Reference in New Issue
Block a user