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

Commit 769d6612 authored by Ioana Alexandru's avatar Ioana Alexandru Committed by Android (Google) Code Review
Browse files

Merge "Only bind footer when flag is enabled." into main

parents 83419402 89a49427
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import com.android.systemui.lifecycle.repeatWhenAttached
import com.android.systemui.plugins.FalsingManager
import com.android.systemui.res.R
import com.android.systemui.statusbar.NotificationShelf
import com.android.systemui.statusbar.notification.footer.shared.FooterViewRefactor
import com.android.systemui.statusbar.notification.footer.ui.view.FooterView
import com.android.systemui.statusbar.notification.footer.ui.viewbinder.FooterViewBinder
import com.android.systemui.statusbar.notification.icon.ui.viewbinder.ShelfNotificationIconViewStore
@@ -62,9 +63,11 @@ constructor(
        viewController: NotificationStackScrollLayoutController
    ) {
        bindShelf(view)
        bindHideList(viewController, viewModel)

        if (FooterViewRefactor.isEnabled) {
            bindFooter(view)
            bindEmptyShade(view)
        bindHideList(viewController, viewModel)

            view.repeatWhenAttached {
                lifecycleScope.launch {
@@ -74,6 +77,7 @@ constructor(
                }
            }
        }
    }

    private fun bindShelf(parentView: NotificationStackScrollLayout) {
        val shelf =