From b023bf85a080442117b5dae8d402bce60cd0a610 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Mon, 23 Apr 2012 16:05:42 -0400 Subject: [PATCH] let default notifications with actions get bigger that 64dp. Bug: 6377749 Change-Id: I8c92ef67b59f7a44b61926c32480cce6990a1375 --- core/java/android/app/Notification.java | 2 +- .../layout/notification_template_big_base.xml | 148 ++++++++++++++++++ core/res/res/values/public.xml | 1 + 3 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 core/res/res/layout/notification_template_big_base.xml diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index b581f99eef754..0a996dfaec9b0 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1450,7 +1450,7 @@ public class Notification implements Parcelable private RemoteViews makeBigContentView() { if (mActions.size() == 0) return null; - return applyStandardTemplateWithActions(R.layout.notification_template_base); + return applyStandardTemplateWithActions(R.layout.notification_template_big_base); } private RemoteViews generateActionButton(Action action) { diff --git a/core/res/res/layout/notification_template_big_base.xml b/core/res/res/layout/notification_template_big_base.xml new file mode 100644 index 0000000000000..5de584df624db --- /dev/null +++ b/core/res/res/layout/notification_template_big_base.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 05150fd528b4a..1a631efb0ff21 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1097,6 +1097,7 @@ +