Merge "Merge "Fixed an issue where a notification could become empty" into pi-dev am: 68b0bb40c6" into pi-dev-plus-aosp

This commit is contained in:
Android Build Merger (Role)
2018-05-18 22:26:04 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -2286,6 +2286,11 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
@Override
public void setHideSensitive(boolean hideSensitive, boolean animated, long delay,
long duration) {
if (getVisibility() == GONE) {
// If we are GONE, the hideSensitive parameter will not be calculated and always be
// false, which is incorrect, let's wait until a real call comes in later.
return;
}
boolean oldShowingPublic = mShowingPublic;
mShowingPublic = mSensitive && hideSensitive;
if (mShowingPublicInitialized && mShowingPublic == oldShowingPublic) {

View File

@@ -364,7 +364,7 @@ public class StackStateAnimator {
// This item is added, initialize it's properties.
ExpandableViewState viewState = finalState
.getViewStateForView(changingView);
if (viewState == null) {
if (viewState == null || viewState.gone) {
// The position for this child was never generated, let's continue.
continue;
}