diff options
author | Selim Cinek <cinek@google.com> | 2014-09-01 15:11:28 +0200 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2014-09-01 21:14:59 +0200 |
commit | 024ca598dd4b38b389251c138f4ef9882d4b68b0 (patch) | |
tree | af7550e33b32490571e17c6a1e814f4842c3b8de /packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java | |
parent | 1cf8906231ff281dab360fc6190aa0633bb9ed18 (diff) | |
download | frameworks_base-024ca598dd4b38b389251c138f4ef9882d4b68b0.zip frameworks_base-024ca598dd4b38b389251c138f4ef9882d4b68b0.tar.gz frameworks_base-024ca598dd4b38b389251c138f4ef9882d4b68b0.tar.bz2 |
Notification guts have now the actualHeight of the notifications
Before it just had the height of the notification leading to bugs
in cornercases during animations and swiping.
Also updated to colors to use system colors.
Bug: 17333457
Change-Id: I00d87820595a789006632c582e8c35759a61969d
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 7d64325..acb83cb 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -60,6 +60,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { private ExpansionLogger mLogger; private String mLoggingKey; private boolean mWasReset; + private NotificationGuts mGuts; public interface ExpansionLogger { public void logNotificationExpansion(String key, boolean userAction, boolean expanded); @@ -103,6 +104,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { super.onFinishInflate(); mPublicLayout = (NotificationContentView) findViewById(R.id.expandedPublic); mPrivateLayout = (NotificationContentView) findViewById(R.id.expanded); + mGuts = (NotificationGuts) findViewById(R.id.notification_guts); mVetoButton = findViewById(R.id.veto); } @@ -360,6 +362,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { public void setActualHeight(int height, boolean notifyListeners) { mPrivateLayout.setActualHeight(height); mPublicLayout.setActualHeight(height); + mGuts.setActualHeight(height); invalidate(); super.setActualHeight(height, notifyListeners); } @@ -381,6 +384,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { super.setClipTopAmount(clipTopAmount); mPrivateLayout.setClipTopAmount(clipTopAmount); mPublicLayout.setClipTopAmount(clipTopAmount); + mGuts.setClipTopAmount(clipTopAmount); } public void notifyContentUpdated() { |