summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2016-06-09 10:42:42 -0700
committer Mady Mellor <madym@google.com> 2016-06-15 13:31:29 -0700
commit1a5d8eadd56b435843dfbc1adf3779aa7286081b (patch)
treeabb3c1e00967bb2de6fd00980bd250cb687eb785
parenta86d6c4df3b193060b4b725e1abfed4f69689843 (diff)
Fixes issue with group backgrounds when animating to keyguard
The backgrounds weren't being updated before the collapse animation when going to the keyguard so it would look very bad when they collapsed. This moves updating the background into setChildrenExpanded which will cover updating the background for both the tapping to expand case as well as the animating to the keyguard case. Change-Id: Icba2fa895498d307a38bd9f65be06265afd21a1a Fixes: 29240532
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
index aedc7df0ebc3..9f50d5404938 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
@@ -140,11 +140,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
@Override
public void onClick(View v) {
if (!mShowingPublic && mGroupManager.isSummaryOfGroup(mStatusBarNotification)) {
+ mGroupExpansionChanging = true;
final boolean wasExpanded = mGroupManager.isGroupExpanded(mStatusBarNotification);
boolean nowExpanded = mGroupManager.toggleGroupExpansion(mStatusBarNotification);
mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded);
- mGroupExpansionChanging = true;
- updateBackgroundForGroupState();
MetricsLogger.action(mContext, MetricsEvent.ACTION_NOTIFICATION_GROUP_EXPANDER,
nowExpanded);
logExpansionEvent(true /* userAction */, wasExpanded);
@@ -1336,6 +1335,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
if (mChildrenContainer != null) {
mChildrenContainer.setChildrenExpanded(expanded);
}
+ updateBackgroundForGroupState();
updateClickAndFocus();
}