From 656f98681e93fc7ae6d4e42daa4b0d1bc268c86d Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Wed, 1 Jun 2016 11:37:29 -0400 Subject: Radio buttons belong in a radio group. Fix for 'multiple buttons selected at once' issue. Change-Id: Iec54eac699886ed1c7b8afd91382ff9b5750c696 Fixes: 27698976 --- packages/SystemUI/res/layout/zen_mode_button.xml | 29 ++++++++++ .../SystemUI/res/layout/zen_mode_condition.xml | 14 ++--- packages/SystemUI/res/layout/zen_mode_panel.xml | 15 ++++-- .../com/android/systemui/volume/ZenModePanel.java | 62 ++++++++++------------ 4 files changed, 73 insertions(+), 47 deletions(-) create mode 100644 packages/SystemUI/res/layout/zen_mode_button.xml diff --git a/packages/SystemUI/res/layout/zen_mode_button.xml b/packages/SystemUI/res/layout/zen_mode_button.xml new file mode 100644 index 000000000000..f25131b6b360 --- /dev/null +++ b/packages/SystemUI/res/layout/zen_mode_button.xml @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/zen_mode_condition.xml b/packages/SystemUI/res/layout/zen_mode_condition.xml index 53f39083acd1..ca4f7278a5ae 100644 --- a/packages/SystemUI/res/layout/zen_mode_condition.xml +++ b/packages/SystemUI/res/layout/zen_mode_condition.xml @@ -18,18 +18,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false" - android:layout_marginBottom="@dimen/zen_mode_condition_detail_item_spacing" android:layout_marginStart="1dp" - android:layout_marginEnd="0dp" > - - + android:layout_marginEnd="0dp" + android:layout_weight="1" + android:gravity="center_vertical" > - + android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" + android:orientation="horizontal" > + + +