tweak crash layout

Signed-off-by: androidacy-user <opensource@androidacy.com>
pull/27/head
androidacy-user 3 years ago
parent e551ddc0c3
commit 8619c66624

@ -1,43 +1,32 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" tools:context=".CrashHandler">
<ScrollView android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
<!-- layout with crash_text header and crash_details body --> <!-- layout with crash_text header and crash_details body -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- crash_text header --> <!-- crash_text header -->
<TextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/crash_text" android:id="@+id/crash_text"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="10dp"
android:gravity="center" android:gravity="fill"
android:text="@string/crash_text" android:text="@string/crash_text"
android:textSize="20sp" android:textSize="20sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/crash_details" android:id="@+id/crash_details"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="10dp"
android:fontFamily="monospace" android:fontFamily="monospace"
android:gravity="center" android:gravity="fill"
android:text="@string/crash_details" android:text="@string/crash_details"
android:textSize="16sp" /> android:textSize="16sp" />
</LinearLayout>
<!-- feedback form --> <!-- feedback form -->
<com.google.android.material.card.MaterialCardView <androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
@ -48,8 +37,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="10dp"
android:gravity="center" android:gravity="fill"
android:text="@string/sentry_dialogue_message" android:text="@string/please_feedback"
android:textSize="20sp" android:textSize="20sp"
android:textStyle="bold" /> android:textStyle="bold" />
@ -61,8 +50,8 @@
<!-- feedback form name --> <!-- feedback form name -->
<EditText <EditText
android:id="@+id/feedback_name" android:id="@+id/feedback_name"
android:layout_width="match_parent" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="48dp"
android:layout_margin="10dp" android:layout_margin="10dp"
android:hint="@string/name" android:hint="@string/name"
android:inputType="text" /> android:inputType="text" />
@ -70,8 +59,8 @@
<!-- feedback form email --> <!-- feedback form email -->
<EditText <EditText
android:id="@+id/feedback_email" android:id="@+id/feedback_email"
android:layout_width="match_parent" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="48dp"
android:layout_margin="10dp" android:layout_margin="10dp"
android:hint="@string/email" android:hint="@string/email"
android:inputType="textEmailAddress" /> android:inputType="textEmailAddress" />
@ -79,30 +68,34 @@
<!-- feedback form message --> <!-- feedback form message -->
<EditText <EditText
android:id="@+id/feedback_message" android:id="@+id/feedback_message"
android:layout_width="match_parent" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="10dp"
android:hint="@string/feedback_message" android:hint="@string/feedback_message"
android:inputType="textMultiLine" /> android:inputType="textMultiLine" />
<!-- feedback form submit button --> <!-- button group for submit feedback & restart / restart only -->
<Button <LinearLayout
android:id="@+id/feedback_submit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal">
<!-- submit feedback button -->
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="10dp"
android:text="@string/feedback_submit" /> android:text="@string/feedback_submit" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<!-- restart button --> <!-- restart button -->
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/restart_button" android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:layout_margin="10dp"
android:text="@string/restart" /> android:text="@string/restart" />
</LinearLayout>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
</LinearLayout>

@ -299,5 +299,5 @@
<string name="share_logs">Share FoxMMM logs</string> <string name="share_logs">Share FoxMMM logs</string>
<string name="not_official_build">This app is an unofficial FoxMMM build.</string> <string name="not_official_build">This app is an unofficial FoxMMM build.</string>
<string name="crash_text">Oops! We ran into a problem.</string> <string name="crash_text">Oops! We ran into a problem.</string>
<string name="crash_details">Exception: %s</string><string name="feedback_message">Give us more details about what you were doing when this happened.</string><string name="feedback_submit">Submit feedback</string> <string name="crash_details">Exception: %s</string><string name="feedback_message">Give us more details about what you were doing when this happened.</string><string name="feedback_submit">Submit and restart</string><string name="please_feedback">Please help us out by telling us what you were trying to do when this happened.</string>
</resources> </resources>

Loading…
Cancel
Save