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

Commit 25e26c18 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Move shouldHideFooterView to the bg

Bug: 330905302
Test: presubmit
Flag: ACONFIG com.android.systemui.notifications_footer_view_refactor TEAMFOOD
Change-Id: Ia12fa260b25bd710313c1680e64a596c84688112
parent be87f2e4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -123,7 +123,10 @@ constructor(
            // When the shade is closed, the footer is still present in the list, but not visible.
            // This prevents the footer from being shown when a HUN is present, while still allowing
            // the footer to be counted as part of the shade for measurements.
            shadeInteractor.shadeExpansion.map { it == 0f }.distinctUntilChanged()
            shadeInteractor.shadeExpansion
                .map { it == 0f }
                .flowOn(bgDispatcher)
                .distinctUntilChanged()
        }
    }

@@ -274,5 +277,6 @@ constructor(
    // TODO(b/325936094) use it for the text displayed in the StatusBar
    fun headsUpRow(key: HeadsUpRowKey): HeadsUpRowViewModel =
        HeadsUpRowViewModel(headsUpNotificationInteractor.headsUpRow(key))

    fun elementKeyFor(key: HeadsUpRowKey): Any = headsUpNotificationInteractor.elementKeyFor(key)
}