summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/crashreporter/res
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /mobile/android/base/crashreporter/res
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'mobile/android/base/crashreporter/res')
-rw-r--r--mobile/android/base/crashreporter/res/drawable-mdpi/crash_reporter.pngbin0 -> 2833 bytes
-rw-r--r--mobile/android/base/crashreporter/res/drawable/textbox_bg.xml22
-rw-r--r--mobile/android/base/crashreporter/res/layout/crash_reporter.xml126
-rw-r--r--mobile/android/base/crashreporter/res/values/colors.xml13
-rw-r--r--mobile/android/base/crashreporter/res/values/styles.xml15
5 files changed, 176 insertions, 0 deletions
diff --git a/mobile/android/base/crashreporter/res/drawable-mdpi/crash_reporter.png b/mobile/android/base/crashreporter/res/drawable-mdpi/crash_reporter.png
new file mode 100644
index 000000000..c9f495d30
--- /dev/null
+++ b/mobile/android/base/crashreporter/res/drawable-mdpi/crash_reporter.png
Binary files differ
diff --git a/mobile/android/base/crashreporter/res/drawable/textbox_bg.xml b/mobile/android/base/crashreporter/res/drawable/textbox_bg.xml
new file mode 100644
index 000000000..bcc884a08
--- /dev/null
+++ b/mobile/android/base/crashreporter/res/drawable/textbox_bg.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:state_enabled="true">
+ <shape>
+ <solid android:color="@color/textbox_background" />
+ <stroke android:width="1dp" android:color="@color/textbox_stroke" />
+ </shape>
+ </item>
+
+ <item android:state_enabled="false">
+ <shape>
+ <solid android:color="@color/textbox_background_disabled" />
+ <stroke android:width="1dp" android:color="@color/textbox_stroke_disabled" />
+ </shape>
+ </item>
+
+</selector>
diff --git a/mobile/android/base/crashreporter/res/layout/crash_reporter.xml b/mobile/android/base/crashreporter/res/layout/crash_reporter.xml
new file mode 100644
index 000000000..b7285dc20
--- /dev/null
+++ b/mobile/android/base/crashreporter/res/layout/crash_reporter.xml
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fillViewport="true">
+
+ <LinearLayout android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:background="@color/toolbar_grey">
+
+ <LinearLayout android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:orientation="vertical"
+ android:padding="10dp"
+ android:layout_weight="1">
+
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="10dip"
+ android:textSize="30sp"
+ android:textColor="#000"
+ android:layout_gravity="center_horizontal"
+ android:fontFamily="sans-serif-light"
+ android:text="@string/crash_sorry"/>
+
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="10dip"
+ android:textAppearance="@style/TextAppearance"
+ android:text="@string/crash_message2"/>
+
+ <CheckBox android:id="@+id/send_report"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:checked="true"
+ android:textColor="@color/primary_text"
+ android:layout_marginBottom="10dp"
+ android:text="@string/crash_send_report_message3"/>
+
+ <EditText android:id="@+id/comment"
+ style="@style/CrashReporter.EditText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="textMultiLine"
+ android:lines="5"
+ android:gravity="top"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="8dp"
+ android:layout_marginBottom="10dp"
+ android:hint="@string/crash_comment" />
+
+ <CheckBox android:id="@+id/include_url"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@color/primary_text"
+ android:textAppearance="@style/TextAppearance"
+ android:layout_marginBottom="10dp"
+ android:text="@string/crash_include_url2"/>
+
+ <CheckBox android:id="@+id/allow_contact"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@color/primary_text"
+ android:textAppearance="@style/TextAppearance"
+ android:layout_marginBottom="10dp"
+ android:text="@string/crash_allow_contact2"/>
+
+ <org.mozilla.gecko.widget.ClickableWhenDisabledEditText
+ android:id="@+id/email"
+ style="@style/CrashReporter.EditText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:inputType="textEmailAddress"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="8dp"
+ android:enabled="false"
+ android:clickable="true"
+ android:hint="@string/crash_email" />
+
+ </LinearLayout>
+
+ <View android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="#999" />
+
+ <LinearLayout android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_gravity="bottom">
+
+ <Button android:id="@+id/close"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:padding="15dp"
+ android:onClick="onCloseClick"
+ android:text="@string/crash_close_label"
+ android:textAppearance="?android:attr/textAppearance"
+ android:background="@drawable/action_bar_button"/>
+
+ <View android:layout_width="1dp"
+ android:layout_height="match_parent"
+ android:background="#999" />
+
+ <Button android:id="@+id/restart"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:padding="15dp"
+ android:onClick="onRestartClick"
+ android:text="@string/crash_restart_label"
+ android:textAppearance="?android:attr/textAppearance"
+ android:background="@drawable/action_bar_button"/>
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+</ScrollView>
diff --git a/mobile/android/base/crashreporter/res/values/colors.xml b/mobile/android/base/crashreporter/res/values/colors.xml
new file mode 100644
index 000000000..7eeab5b69
--- /dev/null
+++ b/mobile/android/base/crashreporter/res/values/colors.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+ <!-- Crash Reporter Colors -->
+ <color name="textbox_background">#FFF</color>
+ <color name="textbox_background_disabled">#DDD</color>
+ <color name="textbox_stroke">#000</color>
+ <color name="textbox_stroke_disabled">#666</color>
+</resources>
+
diff --git a/mobile/android/base/crashreporter/res/values/styles.xml b/mobile/android/base/crashreporter/res/values/styles.xml
new file mode 100644
index 000000000..17f5409e4
--- /dev/null
+++ b/mobile/android/base/crashreporter/res/values/styles.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
+ <!-- Crash Reporter Styles -->
+ <style name="CrashReporter" />
+
+ <style name="CrashReporter.EditText">
+ <item name="android:background">@drawable/textbox_bg</item>
+ <item name="android:padding">10dp</item>
+ <item name="android:textAppearance">@style/TextAppearance</item>
+ </style>
+</resources>