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

Commit 49dffd15 authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Merge "Dim background when group notification expanded" into sc-dev am: 9c4b4c34

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15022247

Change-Id: Iac436738b9319e4ad7178c0707d0ce10c1214010
parents 3c9c19f9 9c4b4c34
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -203,6 +203,14 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
        mBackgroundNormal.setCustomBackground(R.drawable.notification_material_bg);
    }

    protected boolean hideBackground() {
        return false;
    }

    protected void updateBackground() {
        mBackgroundNormal.setVisibility(hideBackground() ? INVISIBLE : VISIBLE);
    }


    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
+6 −0
Original line number Diff line number Diff line
@@ -2890,6 +2890,12 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
            mShowNoBackground = false;
        }
        updateOutline();
        updateBackground();
    }

    @Override
    protected boolean hideBackground() {
        return mShowNoBackground || super.hideBackground();
    }

    public int getPositionOfChild(ExpandableNotificationRow childRow) {