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

Commit eb794002 authored by András Kurucz's avatar András Kurucz
Browse files

[flexiglass] Remove ScrollViewFields#headsupHeightConsumer

This consumer is never set, because we have choosen another delivery
method for the height from the NSSL to the PlaceHolder, the
NotificationHeadsUpHeight layout modifier.

Bug: 296118689
Test: check if HUNs are displayed in flexiglass
Flag: com.android.systemui.scene_container
Change-Id: I2dc80993b81cfe384b234efd0760eecb289b1e00
parent 95ed338a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1287,11 +1287,6 @@ public class NotificationStackScrollLayout
        mScrollViewFields.setRemoteInputRowBottomBoundConsumer(consumer);
    }

    @Override
    public void setHeadsUpHeightConsumer(@Nullable Consumer<Float> consumer) {
        mScrollViewFields.setHeadsUpHeightConsumer(consumer);
    }

    /**
     * @param listener to be notified after the location of Notification children might have
     *                 changed.
+0 −3
Original line number Diff line number Diff line
@@ -86,9 +86,6 @@ class ScrollViewFields {
    fun sendRemoteInputRowBottomBound(bottomY: Float?) =
        remoteInputRowBottomBoundConsumer?.accept(bottomY)

    /** send the [headsUpHeight] to the [headsUpHeightConsumer], if present. */
    fun sendHeadsUpHeight(headsUpHeight: Float) = headsUpHeightConsumer?.accept(headsUpHeight)

    fun dump(pw: IndentingPrintWriter) {
        pw.printSection("StackViewStates") {
            pw.println("scrimClippingShape", scrimClippingShape)
+0 −3
Original line number Diff line number Diff line
@@ -77,9 +77,6 @@ interface NotificationScrollView {
    /** Set a consumer for current remote input notification row bottom bound events */
    fun setRemoteInputRowBottomBoundConsumer(consumer: Consumer<Float?>?)

    /** Set a consumer for heads up height changed events */
    fun setHeadsUpHeightConsumer(consumer: Consumer<Float>?)

    /** sets that scrolling is allowed */
    fun setScrollingEnabled(enabled: Boolean)