Merge "Fixed a bug where the statusbar could become empty" into nyc-dev
This commit is contained in:
@@ -119,11 +119,22 @@ public class NotificationGroupManager implements HeadsUpManager.OnHeadsUpChanged
|
|||||||
group.expanded = added.row.areChildrenExpanded();
|
group.expanded = added.row.areChildrenExpanded();
|
||||||
updateSuppression(group);
|
updateSuppression(group);
|
||||||
if (!group.children.isEmpty()) {
|
if (!group.children.isEmpty()) {
|
||||||
|
HashSet<NotificationData.Entry> childrenCopy =
|
||||||
|
(HashSet<NotificationData.Entry>) group.children.clone();
|
||||||
|
for (NotificationData.Entry child : childrenCopy) {
|
||||||
|
onEntryBecomingChild(child);
|
||||||
|
}
|
||||||
mListener.onGroupCreatedFromChildren(group);
|
mListener.onGroupCreatedFromChildren(group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void onEntryBecomingChild(NotificationData.Entry entry) {
|
||||||
|
if (entry.row.isHeadsUp()) {
|
||||||
|
onHeadsUpStateChanged(entry, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void onEntryBundlingUpdated(final NotificationData.Entry updated,
|
public void onEntryBundlingUpdated(final NotificationData.Entry updated,
|
||||||
final String overrideGroupKey) {
|
final String overrideGroupKey) {
|
||||||
final StatusBarNotification oldSbn = updated.notification.clone();
|
final StatusBarNotification oldSbn = updated.notification.clone();
|
||||||
@@ -188,6 +199,8 @@ public class NotificationGroupManager implements HeadsUpManager.OnHeadsUpChanged
|
|||||||
updateSuppression(mGroupMap.get(oldKey));
|
updateSuppression(mGroupMap.get(oldKey));
|
||||||
updateSuppression(mGroupMap.get(newKey));
|
updateSuppression(mGroupMap.get(newKey));
|
||||||
}
|
}
|
||||||
|
} else if (!isGroupChild(oldNotification) && isGroupChild(entry.notification)) {
|
||||||
|
onEntryBecomingChild(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -354,7 +367,6 @@ public class NotificationGroupManager implements HeadsUpManager.OnHeadsUpChanged
|
|||||||
mListener.onGroupsChanged();
|
mListener.onGroupsChanged();
|
||||||
} else {
|
} else {
|
||||||
handleSuppressedSummaryHeadsUpped(entry);
|
handleSuppressedSummaryHeadsUpped(entry);
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mIsolatedEntries.containsKey(sbn.getKey())) {
|
if (mIsolatedEntries.containsKey(sbn.getKey())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user