Add new button to report battery usage to the developer.
This displays a new button on the application battery usage details screen for the user to send a bug report to the developer, if that is possible to do. Also adds a button to directly force stop the app from the details screen, and uses the new facilities to determine whether the button should be enabled.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dip"
|
||||
android:paddingBottom="4dip"
|
||||
android:ellipsize="marquee"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
|
@@ -87,6 +87,17 @@
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Force stop and report buttons -->
|
||||
<LinearLayout
|
||||
android:id="@+id/two_buttons_panel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="6dip"
|
||||
android:orientation="vertical">
|
||||
<include
|
||||
layout="@layout/two_buttons_panel"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
style="?android:attr/listSeparatorTextViewStyle"
|
||||
android:text="@string/details_subtitle" />
|
||||
|
@@ -35,20 +35,20 @@
|
||||
android:text="@string/no_running_services"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
</FrameLayout>
|
||||
<LinearLayout
|
||||
<view class="com.android.settings.RunningServices$LinearColorBar"
|
||||
android:id="@+id/color_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="?android:attr/colorForeground"
|
||||
android:padding="4dp">
|
||||
<TextView android:id="@+id/backgroundText"
|
||||
<TextView android:id="@+id/foregroundText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
||||
android:color="?android:attr/textColorPrimaryInverse"
|
||||
android:singleLine="true" />
|
||||
<TextView android:id="@+id/foregroundText"
|
||||
<TextView android:id="@+id/backgroundText"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -56,5 +56,5 @@
|
||||
android:textAppearance="?android:attr/textAppearanceSmallInverse"
|
||||
android:color="?android:attr/textColorPrimaryInverse"
|
||||
android:singleLine="true" />
|
||||
</LinearLayout>
|
||||
</view>
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user