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

Commit c062d5aa authored by Schneider Victor-Tulias's avatar Schneider Victor-Tulias Committed by Schneider Victor-tulias
Browse files

Add missing overview state event to tests

This missing event was causing FallbackRecentsTest to fail when using the recents window

Flag: com.android.launcher3.enable_fallback_overview_in_window
Fixes: 380440464
Test: FallbackRecentsTest
Change-Id: I13a69e58811a14ffa88187acd42a1a12016d081d
parent 8b63ee34
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -36,11 +36,13 @@ import com.android.launcher3.BaseActivity
import com.android.launcher3.LauncherAnimationRunner
import com.android.launcher3.LauncherAnimationRunner.RemoteAnimationFactory
import com.android.launcher3.R
import com.android.launcher3.compat.AccessibilityManagerCompat
import com.android.launcher3.statehandlers.DesktopVisibilityController
import com.android.launcher3.statemanager.StateManager
import com.android.launcher3.statemanager.StateManager.AtomicAnimationFactory
import com.android.launcher3.statemanager.StatefulContainer
import com.android.launcher3.taskbar.TaskbarUIController
import com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_STATE_ORDINAL
import com.android.launcher3.util.ContextTracker
import com.android.launcher3.util.DisplayController
import com.android.launcher3.util.RunnableList
@@ -355,6 +357,9 @@ class RecentsWindowManager(context: Context) :
        if (state == HOME || state == BG_LAUNCHER) {
            cleanupRecentsWindow()
        }
        if (state === DEFAULT) {
            AccessibilityManagerCompat.sendStateEventToTest(baseContext, OVERVIEW_STATE_ORDINAL)
        }
    }

    private fun getStateName(state: RecentsState?): String {