Merge "Made sure that the ambient single line view remains invisible" into pi-dev

am: 75402c371b

Change-Id: I171b5e8251fc1cd5133e39cfc4ddc2f8eaa49ff2
This commit is contained in:
Selim Cinek
2018-05-15 13:01:43 -07:00
committed by android-build-merger

View File

@@ -1199,8 +1199,13 @@ public class NotificationContentView extends FrameLayout {
}
private void updateSingleLineView() {
if (mIsChildInGroup) {
boolean isNewView = mSingleLineView == null;
mSingleLineView = mHybridGroupManager.bindFromNotification(
mSingleLineView, mStatusBarNotification.getNotification());
if (isNewView) {
updateViewVisibility(mVisibleType, VISIBLE_TYPE_SINGLELINE,
mSingleLineView, mSingleLineView);
}
} else if (mSingleLineView != null) {
removeView(mSingleLineView);
mSingleLineView = null;
@@ -1209,8 +1214,13 @@ public class NotificationContentView extends FrameLayout {
private void updateAmbientSingleLineView() {
if (mIsChildInGroup) {
boolean isNewView = mAmbientSingleLineChild == null;
mAmbientSingleLineChild = mHybridGroupManager.bindAmbientFromNotification(
mAmbientSingleLineChild, mStatusBarNotification.getNotification());
if (isNewView) {
updateViewVisibility(mVisibleType, VISIBLE_TYPE_AMBIENT_SINGLELINE,
mAmbientSingleLineChild, mAmbientSingleLineChild);
}
} else if (mAmbientSingleLineChild != null) {
removeView(mAmbientSingleLineChild);
mAmbientSingleLineChild = null;