From a032c90189d9ac28b65af4fe5f8b34f182441335 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Sun, 16 Jan 2011 10:50:23 -0800 Subject: [PATCH] Provide a public resource with the dimensions of the large notification icon. Bug: 3301067 Change-Id: I4ef66ee35df34a5288681a0e80e9877d57398dd0 --- api/current.xml | 22 +++++++++++++++++++ core/res/res/values/dimens.xml | 6 +++++ core/res/res/values/public.xml | 2 ++ .../status_bar_notification_row.xml | 4 ++-- .../status_bar_ticker_compat.xml | 4 ++-- .../layout-xlarge/status_bar_ticker_panel.xml | 4 ++-- .../SystemUI/res/values-xlarge/dimens.xml | 4 ---- .../statusbar/tablet/TabletTicker.java | 3 ++- 8 files changed, 38 insertions(+), 11 deletions(-) diff --git a/api/current.xml b/api/current.xml index 68d3187dce0a2..5866d1fbcf33a 100644 --- a/api/current.xml +++ b/api/current.xml @@ -11473,6 +11473,28 @@ visibility="public" > + + + + 95% + + + 60dp + + 60dp + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index e73486defea80..a8fc4f334ba4c 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1470,6 +1470,8 @@ + + - - 60dp - - 60dp 360dp diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java index 7705dfc38694b..fa732c3224855 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletTicker.java @@ -208,7 +208,8 @@ public class TabletTicker final Resources res = mContext.getResources(); final FrameLayout view = new FrameLayout(mContext); final int width = res.getDimensionPixelSize(R.dimen.notification_ticker_width); - final int height = res.getDimensionPixelSize(R.dimen.notification_large_icon_height); + final int height = res.getDimensionPixelSize( + android.R.dimen.notification_large_icon_height); int windowFlags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;