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

Commit 591c3bab authored by Liran Binyamin's avatar Liran Binyamin
Browse files

Inject BubbleLogger into BubbleBarExpandedView

Use dagger to directly inject BubbleLogger into BubbleBarExpandedView
instead of passing it down through a bunch of classes.

Bug: 378075955
Flag: com.android.wm.shell.enable_bubble_bar
Test: treehugger
Change-Id: I9b1179453e80407e6c2118f2371fe24d97dbb331
parent c1965ff4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -685,7 +685,6 @@ class BubbleStackViewTest {
            expandedViewManager,
            bubbleTaskViewFactory,
            positioner,
            bubbleLogger,
            bubbleStackView,
            null,
            iconFactory,
+0 −1
Original line number Diff line number Diff line
@@ -327,7 +327,6 @@ class BubbleViewInfoTaskTest {
            expandedViewManager,
            bubbleTaskViewFactory,
            bubblePositioner,
            bubbleLogger,
            bubbleStackView,
            null /* layerView */,
            iconFactory,
+1 −1
Original line number Diff line number Diff line
@@ -45,10 +45,10 @@ class FakeBubbleFactory {
                        .inflate(R.layout.bubble_bar_expanded_view, null, false /* attachToRoot */)
                        as BubbleBarExpandedView)
                    .apply {
                        this.bubbleLogger = bubbleLogger
                        initialize(
                            expandedViewManager,
                            bubblePositioner,
                            bubbleLogger,
                            false, /* isOverflow */
                            bubbleTaskView,
                            mainExecutor,
+1 −1
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ class BubbleBarAnimationHelperTest {

    private fun createOverflow(): BubbleOverflow {
        val overflow = BubbleOverflow(context, bubblePositioner)
        overflow.initializeForBubbleBar(expandedViewManager, bubblePositioner, bubbleLogger)
        overflow.initializeForBubbleBar(expandedViewManager, bubblePositioner)
        return overflow
    }

+1 −3
Original line number Diff line number Diff line
@@ -114,10 +114,10 @@ class BubbleBarExpandedViewTest {
        bubbleExpandedView = inflater.inflate(
            R.layout.bubble_bar_expanded_view, null, false /* attachToRoot */
        ) as BubbleBarExpandedView
        bubbleExpandedView.bubbleLogger = BubbleLogger(uiEventLoggerFake)
        bubbleExpandedView.initialize(
            expandedViewManager,
            positioner,
            BubbleLogger(uiEventLoggerFake),
            false /* isOverflow */,
            bubbleTaskView,
            mainExecutor,
@@ -279,7 +279,6 @@ class BubbleBarExpandedViewTest {
        expandedView.initialize(
            expandedViewManager,
            positioner,
            BubbleLogger(uiEventLoggerFake),
            false /* isOverflow */,
            taskView,
            mainExecutor,
@@ -321,7 +320,6 @@ class BubbleBarExpandedViewTest {
        expandedView.initialize(
            expandedViewManager,
            positioner,
            BubbleLogger(uiEventLoggerFake),
            false /* isOverflow */,
            taskView,
            mainExecutor,
Loading