Fixed a bug where children were not / incorrectly userlocked

This can lead to all sorts of weird behavior

Bug: 24866646
Change-Id: If3395c5f1b524592cd658a57ac91d2a0fe893011
This commit is contained in:
Selim Cinek
2016-02-29 20:03:08 -08:00
parent 898d173b92
commit 8e0c498165

View File

@@ -167,6 +167,7 @@ public class NotificationChildrenContainer extends ViewGroup {
int newIndex = childIndex < 0 ? mChildren.size() : childIndex;
mChildren.add(newIndex, row);
addView(row);
row.setUserLocked(mUserLocked);
View divider = inflateDivider();
addView(divider);
@@ -191,6 +192,7 @@ public class NotificationChildrenContainer extends ViewGroup {
});
row.setSystemChildExpanded(false);
row.setUserLocked(false);
updateGroupOverflow();
}