Remove icon, add scroll view to crash report dialog.

Scroll view helps with smaller screens. Alert dialog icons are not
part of the material design spec so that was removed.
This commit is contained in:
Peter Serwylo 2016-01-03 15:48:44 +11:00
parent 49d01e0ca3
commit a99767f3a6
2 changed files with 32 additions and 26 deletions

View File

@ -1,9 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingBottom="24dp"
@ -33,4 +38,6 @@
android:layout_marginTop="20dp"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>

View File

@ -15,7 +15,6 @@ public class CrashReportActivity extends BaseCrashReportDialog implements Dialog
final AlertDialog dialog = new AlertDialog.Builder(this)
.setTitle(R.string.crash_dialog_title)
.setIcon(android.R.drawable.ic_dialog_alert)
.setView(R.layout.crash_report_dialog)
.setPositiveButton(R.string.ok, this)
.setNegativeButton(R.string.cancel, this)