From 2684d5e7d7f0b698c631f27b099760fae33e84ba Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Wed, 28 May 2014 20:27:44 -0400 Subject: QuickSettings: Basic content-resizing for detail panel. Also remove toggle from zen tile + fix bottom padding. Bug:15315490 Change-Id: Ib839b9280ce60d2f51e4c0c46e41a7743e7ec8f6 --- packages/SystemUI/res/layout/volume_panel.xml | 1 + packages/SystemUI/res/layout/zen_mode_panel.xml | 4 +++- packages/SystemUI/src/com/android/systemui/qs/QSPanel.java | 14 +++++++++++--- .../com/android/systemui/qs/tiles/NotificationsTile.java | 6 +----- .../systemui/statusbar/phone/NotificationPanelView.java | 4 +++- 5 files changed, 19 insertions(+), 10 deletions(-) (limited to 'packages') diff --git a/packages/SystemUI/res/layout/volume_panel.xml b/packages/SystemUI/res/layout/volume_panel.xml index bc7288d..046862f 100644 --- a/packages/SystemUI/res/layout/volume_panel.xml +++ b/packages/SystemUI/res/layout/volume_panel.xml @@ -24,6 +24,7 @@ android:id="@+id/slider_panel" android:layout_width="match_parent" android:layout_height="wrap_content" + android:minHeight="64dip" android:layout_toLeftOf="@+id/expand_button_divider" /> + android:paddingTop="@dimen/qs_panel_padding" + android:paddingLeft="@dimen/qs_panel_padding" + android:paddingRight="@dimen/qs_panel_padding" > 0) { + final int dmh = mDetail.getMeasuredHeight(); + if (dmh > 0) h = dmh; + } + setMeasuredDimension(width, h); } private static int exactly(int size) { return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY); } + private static int unspecified() { + return MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); + } + @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { final int w = getWidth(); diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/NotificationsTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/NotificationsTile.java index 267786b..20bbf8b 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/NotificationsTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/NotificationsTile.java @@ -108,11 +108,7 @@ public class NotificationsTile extends QSTile