Loading packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +5 −0 Original line number Diff line number Diff line Loading @@ -258,4 +258,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { public void notifyContentUpdated() { mPrivateLayout.notifyContentUpdated(); } public boolean isShowingLayoutLayouted() { View showingLayout = mShowingPublic ? mPublicLayout : mPrivateLayout; return showingLayout.getWidth() != 0; } } packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java +9 −1 Original line number Diff line number Diff line Loading @@ -662,7 +662,7 @@ public class StackScrollAlgorithm { } else { // We are expanding the shade, expand it to its full height. if (mFirstChildWhileExpanding.getWidth() == 0) { if (!isMaxSizeInitialized(mFirstChildWhileExpanding)) { // This child was not layouted yet, wait for a layout pass mFirstChildWhileExpanding Loading @@ -689,6 +689,14 @@ public class StackScrollAlgorithm { } } private boolean isMaxSizeInitialized(ExpandableView child) { if (child instanceof ExpandableNotificationRow) { ExpandableNotificationRow row = (ExpandableNotificationRow) child; return row.isShowingLayoutLayouted(); } return child == null || child.getWidth() != 0; } private View findFirstVisibleChild(ViewGroup container) { int childCount = container.getChildCount(); for (int i = 0; i < childCount; i++) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +5 −0 Original line number Diff line number Diff line Loading @@ -258,4 +258,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { public void notifyContentUpdated() { mPrivateLayout.notifyContentUpdated(); } public boolean isShowingLayoutLayouted() { View showingLayout = mShowingPublic ? mPublicLayout : mPrivateLayout; return showingLayout.getWidth() != 0; } }
packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java +9 −1 Original line number Diff line number Diff line Loading @@ -662,7 +662,7 @@ public class StackScrollAlgorithm { } else { // We are expanding the shade, expand it to its full height. if (mFirstChildWhileExpanding.getWidth() == 0) { if (!isMaxSizeInitialized(mFirstChildWhileExpanding)) { // This child was not layouted yet, wait for a layout pass mFirstChildWhileExpanding Loading @@ -689,6 +689,14 @@ public class StackScrollAlgorithm { } } private boolean isMaxSizeInitialized(ExpandableView child) { if (child instanceof ExpandableNotificationRow) { ExpandableNotificationRow row = (ExpandableNotificationRow) child; return row.isShowingLayoutLayouted(); } return child == null || child.getWidth() != 0; } private View findFirstVisibleChild(ViewGroup container) { int childCount = container.getChildCount(); for (int i = 0; i < childCount; i++) { Loading