Merge "Fixes issue with group backgrounds when animating to keyguard" into nyc-dev
This commit is contained in:
@@ -140,11 +140,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (!mShowingPublic && mGroupManager.isSummaryOfGroup(mStatusBarNotification)) {
|
if (!mShowingPublic && mGroupManager.isSummaryOfGroup(mStatusBarNotification)) {
|
||||||
|
mGroupExpansionChanging = true;
|
||||||
final boolean wasExpanded = mGroupManager.isGroupExpanded(mStatusBarNotification);
|
final boolean wasExpanded = mGroupManager.isGroupExpanded(mStatusBarNotification);
|
||||||
boolean nowExpanded = mGroupManager.toggleGroupExpansion(mStatusBarNotification);
|
boolean nowExpanded = mGroupManager.toggleGroupExpansion(mStatusBarNotification);
|
||||||
mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded);
|
mOnExpandClickListener.onExpandClicked(mEntry, nowExpanded);
|
||||||
mGroupExpansionChanging = true;
|
|
||||||
updateBackgroundForGroupState();
|
|
||||||
MetricsLogger.action(mContext, MetricsEvent.ACTION_NOTIFICATION_GROUP_EXPANDER,
|
MetricsLogger.action(mContext, MetricsEvent.ACTION_NOTIFICATION_GROUP_EXPANDER,
|
||||||
nowExpanded);
|
nowExpanded);
|
||||||
logExpansionEvent(true /* userAction */, wasExpanded);
|
logExpansionEvent(true /* userAction */, wasExpanded);
|
||||||
@@ -1343,6 +1342,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
|
|||||||
if (mChildrenContainer != null) {
|
if (mChildrenContainer != null) {
|
||||||
mChildrenContainer.setChildrenExpanded(expanded);
|
mChildrenContainer.setChildrenExpanded(expanded);
|
||||||
}
|
}
|
||||||
|
updateBackgroundForGroupState();
|
||||||
updateClickAndFocus();
|
updateClickAndFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user