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

Commit 7f807071 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Don't attach pipeline to group expansion mgr.

This is to avoid a bug where the group state is broken after a
notification is removed and then re-added (e.g. after being filtered by
zenmode), and ExpandableNotificationRow.areChildrenExpanded ends up out
of sync with ExpandableNotificationRow.isGroupExpanded.

Bug: 282865576
Test: tested manually that the bug doesn't happen anymore
Change-Id: Id3066a9269b9484a30f16bd43236b061b0b6aefe
parent 7787c053
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -39,7 +39,10 @@ class StackCoordinator @Inject internal constructor(

    override fun attach(pipeline: NotifPipeline) {
        pipeline.addOnAfterRenderListListener(::onAfterRenderList)
        groupExpansionManagerImpl.attach(pipeline)
        // TODO(b/282865576): This has an issue where it makes changes to some groups without
        // notifying listeners. To be fixed in QPR, but for now let's comment it out to avoid the
        // group expansion bug.
        // groupExpansionManagerImpl.attach(pipeline)
    }

    fun onAfterRenderList(entries: List<ListEntry>, controller: NotifStackController) =