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

Commit 89a49427 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Only bind footer when flag is enabled.

The binding of the footer, empty shade and accessibility importance
should be protected by the footer refactor flag.

Bug: 293167744
Fix: 312914620
Test: checked manually that things work with the flag on/off
Flag: ACONFIG com.android.systemui.notifications_footer_view_refactor DEVELOPMENT

Change-Id: I5b0380dac56b9845083ec6dfbc06d41652c8a19d
parent d6c74b3a
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 =