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

Commit e30629d8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not let QS handle touches where clipped." into sc-qpr1-dev am:...

Merge "Do not let QS handle touches where clipped." into sc-qpr1-dev am: 71eaadea am: df188b4f am: 56093853

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

Change-Id: Id500d5436ea4a8cb216c97ac882d21f7e9d20ee0
parents 951ed7ad 56093853
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.res.Configuration;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.Point;
import android.graphics.PointF;
import android.util.AttributeSet;
import android.view.View;
import android.view.WindowInsets;
@@ -295,6 +296,16 @@ public class QSContainerImpl extends FrameLayout implements Dumpable {
        }
    }

    @Override
    protected boolean isTransformedTouchPointInView(float x, float y,
            View child, PointF outLocalPoint) {
        // Prevent touches outside the clipped area from propagating to a child in that area.
        if (mClippingEnabled && y + getTranslationY() > mFancyClippingTop) {
            return false;
        }
        return super.isTransformedTouchPointInView(x, y, child, outLocalPoint);
    }

    private void updateClippingPath() {
        mFancyClippingPath.reset();
        if (!mClippingEnabled) {