summaryrefslogtreecommitdiffstats
path: root/res/layout/installed_app_details.xml
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2012-05-15 15:48:09 -0400
committerDaniel Sandler <dsandler@android.com>2012-05-17 13:21:57 -0400
commit70b599983967b68894a9c41df2279424f6ab3fef (patch)
tree5e779ea77c09caa1f7707e365e87b65183b84669 /res/layout/installed_app_details.xml
parent8cbfe4036eeaf463c2a2ea7f5842cdd70b395228 (diff)
downloadpackages_apps_Settings-70b599983967b68894a9c41df2279424f6ab3fef.zip
packages_apps_Settings-70b599983967b68894a9c41df2279424f6ab3fef.tar.gz
packages_apps_Settings-70b599983967b68894a9c41df2279424f6ab3fef.tar.bz2
Refinements to notification controls in Settings.
- the switch is now a checkbox - a dialog is posted to explain the ramifications of disabling notifications - the user may no longer disable notifications from system apps (signed with the system cert); this is roughly the same as the constraint on disabling packages (with the exception that launchers may not be disabled entirely, but their notifications may still be disabled). Bug: 6493120 (checkbox) Bug: 6448988 (confirmation dialog & protect system apps) Change-Id: I6c7a47ba2eb943936d7f59cfc807a4390acc980d
Diffstat (limited to 'res/layout/installed_app_details.xml')
-rw-r--r--res/layout/installed_app_details.xml33
1 files changed, 5 insertions, 28 deletions
diff --git a/res/layout/installed_app_details.xml b/res/layout/installed_app_details.xml
index 099df64..c41bdb6 100644
--- a/res/layout/installed_app_details.xml
+++ b/res/layout/installed_app_details.xml
@@ -50,35 +50,12 @@
android:id="@+id/control_buttons_panel"/>
<!-- Ban notifications for this package -->
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
+ <CheckBox android:id="@+id/notification_switch"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:minHeight="48dp"
- android:paddingLeft="6dip"
- android:paddingTop="8dip"
- android:gravity="center_vertical">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingRight="14dip"
- android:text="@string/app_notifications_switch_label"
- android:singleLine="true"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:ellipsize="marquee"
- android:fadingEdge="horizontal" />
- <Switch android:id="@+id/notification_switch"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:padding="8dip"
- android:switchTextAppearance="@style/TextAppearance.Switch"
- android:textOn="@string/app_notifications_switch_on"
- android:textOff="@string/app_notifications_switch_off"
- android:focusable="false"
- android:clickable="true" />
- </LinearLayout>
+ android:layout_marginLeft="12dip"
+ android:layout_gravity="left"
+ android:text="@string/app_notifications_switch_label" />
</LinearLayout>