Merge "Fixed the heads up disspearing bug for real" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
70b06cc62f
@@ -2654,6 +2654,10 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
type = row.wasJustClicked()
|
type = row.wasJustClicked()
|
||||||
? AnimationEvent.ANIMATION_TYPE_HEADS_UP_DISAPPEAR_CLICK
|
? AnimationEvent.ANIMATION_TYPE_HEADS_UP_DISAPPEAR_CLICK
|
||||||
: AnimationEvent.ANIMATION_TYPE_HEADS_UP_DISAPPEAR;
|
: AnimationEvent.ANIMATION_TYPE_HEADS_UP_DISAPPEAR;
|
||||||
|
if (row.isChildInGroup()) {
|
||||||
|
// We can otherwise get stuck in there if it was just isolated
|
||||||
|
row.setHeadsupDisappearRunning(false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
StackViewState viewState = mCurrentStackScrollState.getViewStateForView(row);
|
StackViewState viewState = mCurrentStackScrollState.getViewStateForView(row);
|
||||||
if (viewState == null) {
|
if (viewState == null) {
|
||||||
@@ -3150,7 +3154,13 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
for (int i = 0; i < getChildCount(); i++) {
|
for (int i = 0; i < getChildCount(); i++) {
|
||||||
View view = getChildAt(i);
|
View view = getChildAt(i);
|
||||||
if (view instanceof ExpandableNotificationRow) {
|
if (view instanceof ExpandableNotificationRow) {
|
||||||
((ExpandableNotificationRow) view).setHeadsupDisappearRunning(false);
|
ExpandableNotificationRow row = (ExpandableNotificationRow) view;
|
||||||
|
row.setHeadsupDisappearRunning(false);
|
||||||
|
if (row.isSummaryWithChildren()) {
|
||||||
|
for (ExpandableNotificationRow child : row.getNotificationChildren()) {
|
||||||
|
child.setHeadsupDisappearRunning(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user