summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2012-04-19 07:01:37 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-19 07:01:37 -0700
commit3dfc82b5677a77e805511c263197c95c52a1665e (patch)
tree701641d853ef7f1d532928964e5a0196518e7d08 /packages
parentf66bc73fa72b5260facf561579aae9e45ee25990 (diff)
parentbc5559f1922d72715940f754faffc82da4100eab (diff)
downloadframeworks_base-3dfc82b5677a77e805511c263197c95c52a1665e.zip
frameworks_base-3dfc82b5677a77e805511c263197c95c52a1665e.tar.gz
frameworks_base-3dfc82b5677a77e805511c263197c95c52a1665e.tar.bz2
Merge "Expand too-small notifications to fill 64dp."
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index ede8e7a..dba70be 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -354,9 +354,10 @@ public abstract class BaseStatusBar extends SystemUI implements
LayoutInflater inflater = (LayoutInflater)mContext.getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
View row = inflater.inflate(R.layout.status_bar_notification_row, parent, false);
+
// XXX: temporary: while testing big notifications, auto-expand all of them
ViewGroup.LayoutParams lp = row.getLayoutParams();
- if (sbn.notification.bigContentView != null) {
+ if (large != null) {
lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
} else {
lp.height = minHeight;
@@ -372,9 +373,16 @@ public abstract class BaseStatusBar extends SystemUI implements
// bind the click event to the content area
ViewGroup content = (ViewGroup)row.findViewById(R.id.content);
ViewGroup adaptive = (ViewGroup)row.findViewById(R.id.adaptive);
- // XXX: update to allow controls within notification views
+
+ // Ensure that R.id.content is properly set to 64dp high if 1U
+ lp = content.getLayoutParams();
+ if (large == null) {
+ lp.height = minHeight;
+ }
+ content.setLayoutParams(lp);
+
content.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
-// content.setOnFocusChangeListener(mFocusChangeListener);
+
PendingIntent contentIntent = sbn.notification.contentIntent;
if (contentIntent != null) {
final View.OnClickListener listener = new NotificationClicker(contentIntent,