Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75402c37 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 0b20fa45 c5926c36
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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;