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

Commit 665593ae authored by András Kurucz's avatar András Kurucz
Browse files

[flexiglass] Migrate NSSL#isInContentBounds(float y)

Use the positioning values from the placeholder to answer
isInContentBounds(float y).

Bug: 376018224
Test: run sysui with, and without flexiglass
Flag: com.android.systemui.scene_container
Change-Id: I9d4609bd2e649405cdc26c7df923ffb7664c2f54
parent 5cd16a26
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -3639,8 +3639,12 @@ public class NotificationStackScrollLayout
     * @return Whether a y coordinate is inside the content.
     * @return Whether a y coordinate is inside the content.
     */
     */
    public boolean isInContentBounds(float y) {
    public boolean isInContentBounds(float y) {
        if (SceneContainerFlag.isEnabled()) {
            return y < mAmbientState.getStackCutoff();
        } else {
            return y < getHeight() - getEmptyBottomMarginInternal();
            return y < getHeight() - getEmptyBottomMarginInternal();
        }
        }
    }


    private float getTouchSlop(MotionEvent event) {
    private float getTouchSlop(MotionEvent event) {
        // Adjust the touch slop if another gesture may be being performed.
        // Adjust the touch slop if another gesture may be being performed.