Files
app_Settings/res/layout/bugreport_options_dialog.xml
Felipe Leme 834496f7fc Changed dialog shown from "Take Bug Report" to display 2 options:
* Normal Report: the new, enhanced option is more user-friendly (it
  shows a system notification with the progress, allow user to cancel,
  etc...), at the cost of consuming more resources. When this option is
  selected, the bugreport will be delayed 2 seconds so user can dismiss
  the Settings app before a screenshot is taken.

* Emergency Report: a lighter approach that is less intrusive and
  should be use when the phone is unresponsive or too slow.

BUG: 26034608
BUG: 11665244

Change-Id: If9c0242a163c8c33adecfc8a65af561e839bab8d
2015-12-21 08:15:17 -08:00

78 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<CheckedTextView
android:id="@+id/bugreport_option_interactive_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:drawableStart="?android:attr/listChoiceIndicatorSingle"
android:ellipsize="marquee"
android:gravity="center_vertical"
android:paddingEnd="?android:attr/dialogPreferredPadding"
android:paddingStart="20dp"
android:text="@*android:string/bugreport_option_interactive_title"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorAlertDialogListItem" />
<TextView
android:id="@+id/bugreport_option_interactive_summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/bugreport_option_interactive_title"
android:maxLines="10"
android:paddingBottom="8dp"
android:paddingStart="52dp"
android:paddingEnd="?android:attr/dialogPreferredPadding"
android:text="@*android:string/bugreport_option_interactive_summary"
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
android:textColor="?android:attr/textColorSecondary" />
<CheckedTextView
android:id="@+id/bugreport_option_full_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/bugreport_option_interactive_summary"
android:checked="false"
android:drawableStart="?android:attr/listChoiceIndicatorSingle"
android:ellipsize="marquee"
android:gravity="center_vertical"
android:paddingEnd="?android:attr/dialogPreferredPadding"
android:paddingStart="20dp"
android:text="@*android:string/bugreport_option_full_title"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorAlertDialogListItem" />
<TextView
android:id="@+id/bugreport_option_full_summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/bugreport_option_full_title"
android:maxLines="10"
android:paddingBottom="8dp"
android:paddingStart="52dp"
android:paddingEnd="?android:attr/dialogPreferredPadding"
android:text="@*android:string/bugreport_option_full_summary"
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
android:textColor="?android:attr/textColorSecondary" />
</RelativeLayout>