OSDN Git Service

Fixed a bug where children were not / incorrectly userlocked
authorSelim Cinek <cinek@google.com>
Tue, 1 Mar 2016 04:03:08 +0000 (20:03 -0800)
committerSelim Cinek <cinek@google.com>
Tue, 1 Mar 2016 19:16:11 +0000 (19:16 +0000)
This can lead to all sorts of weird behavior

Bug: 24866646
Change-Id: If3395c5f1b524592cd658a57ac91d2a0fe893011

packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java

index 495aa7a..7955733 100644 (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();
     }