diff options
author | Joe Onorato <joeo@google.com> | 2019-05-20 19:48:14 -0700 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2019-05-21 13:07:31 -0700 |
commit | 2ea4955fcdc3698216c04519724b3cab50fd33ab (patch) | |
tree | fa2fdecb4e92e211f3d4a2434cfeb07a7e717a3c /res | |
parent | d6cd584e4f6f1371948c02b9010c5fd12145eaf6 (diff) | |
download | android_packages_apps_PackageInstaller-2ea4955fcdc3698216c04519724b3cab50fd33ab.tar.gz android_packages_apps_PackageInstaller-2ea4955fcdc3698216c04519724b3cab50fd33ab.tar.bz2 android_packages_apps_PackageInstaller-2ea4955fcdc3698216c04519724b3cab50fd33ab.zip |
Show reason text from incident report in incident confirmation dialog.
Bug: 132890298
Test: bit GtsIncidentManagerTestCases:*
Change-Id: I8b0823694bf30a2bf7dab145c3ce17e44a275ed6
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/incident_confirmation.xml (renamed from res/layout/incident_image_confirmation.xml) | 35 | ||||
-rw-r--r-- | res/values/attrs.xml | 1 | ||||
-rw-r--r-- | res/values/colors.xml | 1 | ||||
-rw-r--r-- | res/values/dimens.xml | 3 | ||||
-rw-r--r-- | res/values/strings.xml | 6 |
5 files changed, 44 insertions, 2 deletions
diff --git a/res/layout/incident_image_confirmation.xml b/res/layout/incident_confirmation.xml index 8659756c..c69e498f 100644 --- a/res/layout/incident_image_confirmation.xml +++ b/res/layout/incident_confirmation.xml @@ -27,11 +27,39 @@ android:layout_height="wrap_content" android:orientation="vertical"> + <TextView + android:id="@+id/reasonIntro" + android:visibility="gone" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="18dp" + android:paddingEnd="?android:attr/dialogPreferredPadding" + android:paddingStart="?android:attr/dialogPreferredPadding" + android:textSize="18sp" + style="@android:style/TextAppearance.Material.Subhead" + android:text="@string/incident_report_dialog_intro" + /> + + <TextView + android:id="@+id/reasons" + android:visibility="gone" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="18dp" + android:paddingEnd="?android:attr/dialogPreferredPadding" + android:paddingStart="@dimen/incident_reason_padding" + android:textSize="18sp" + style="@android:style/TextAppearance.Material.Subhead" + android:text="@string/incident_report_dialog_intro" + /> + <HorizontalScrollView - xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/imageScrollView" android:layout_width="match_parent" android:layout_height="wrap_content" - android:clipToPadding="false"> + android:paddingTop="18dp" + android:clipToPadding="false" + android:visibility="gone"> <LinearLayout android:id="@+id/imageList" @@ -48,8 +76,11 @@ android:id="@+id/message" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingTop="18dp" android:paddingEnd="?android:attr/dialogPreferredPadding" android:paddingStart="?android:attr/dialogPreferredPadding" + android:textSize="18sp" + style="@android:style/TextAppearance.Material.Subhead" /> </LinearLayout> </ScrollView> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index f8144d74..cc93effd 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -36,4 +36,5 @@ <!-- START: Car Settings Preferences --> <attr name="carDividerColor" format="color"/> <!-- END: Car Settings Preferences --> + </resources> diff --git a/res/values/colors.xml b/res/values/colors.xml index a5e85e16..277c8b8a 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -19,4 +19,5 @@ <color name="bigIconColor">#C8CCCE</color> <color name="google_grey_800">#3C4043</color> <color name="system_notification_accent_color">#ff607D8B</color> + <color name="incident_reason_bullet_color">#de000000</color> </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 04ec00ce..42c0fbec 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -53,6 +53,9 @@ <!-- Incident report confirmation --> <dimen name="incident_image_width">150dp</dimen> <dimen name="incident_image_height">200dp</dimen> + <dimen name="incident_reason_padding">32dp</dimen> + <dimen name="incident_reason_bullet_size">3dp</dimen> + <dimen name="incident_reason_bullet_indent">10dp</dimen> <!-- Auto related dimensions --> <dimen name="car_action_bar_height">@*android:dimen/car_app_bar_height</dimen> diff --git a/res/values/strings.xml b/res/values/strings.xml index c03934da..fd242871 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -812,6 +812,12 @@ <!-- Title for the incident / bug report confirmation dialog. [CHAR LIMIT=50] --> <string name="incident_report_dialog_title">Share Debugging Data</string> + <!-- Title text for introduction to incident / bug report confirmation dialog. + Following this text is a bulleted list of reasons that a bug is being collected (e.g. "bad + battery life detected"). Please try to keep this as short as possible (<40 chars if possible). + The dialog is getting full, but going over is ok if necessary. [CHAR LIMIT=60] --> + <string name="incident_report_dialog_intro">The system has detected a problem.</string> + <!-- Content for dialog shown when the user should confirm an incident / bug report. [CHAR LIMIT=none] --> <string name="incident_report_dialog_text">"<xliff:g id="app_name" example="Gmail">%1$s</xliff:g> is requesting to upload a bug report from this device taken on <xliff:g id="date" example="December 26, 2018">%2$s</xliff:g> at <xliff:g id="time" example="1:20 PM">%3$s</xliff:g>. Bug reports include personal information about your device or logged by apps, for example, user names, location data, device identifiers, and network information. Only share bug reports with people and apps you trust with this information. |