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

Commit 93d3f9a9 authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] basic impl of ActivityStarterInternal" into main

parents bedbd880 7862f97d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ class ActivityStarterImplTest : SysuiTestCase() {
                statusBarStateController = statusBarStateController,
                mainExecutor = mainExecutor,
                legacyActivityStarter = { legacyActivityStarterInternal },
                activityStarterInternal = { activityStarterInternal },
            )
    }

+3 −2
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ constructor(
     * Whether the system is dreaming. [isDreaming] will be always be true when [isDozing] is true,
     * but not vice-versa.
     */
    val isDreaming: Flow<Boolean> = repository.isDreaming
    val isDreaming: StateFlow<Boolean> = repository.isDreaming

    /** Whether the system is dreaming with an overlay active */
    val isDreamingWithOverlay: Flow<Boolean> = repository.isDreamingWithOverlay
@@ -205,7 +205,8 @@ constructor(
                        trySendWithFailureLogging(
                            cameraLaunchSourceIntToModel(source),
                            TAG,
                            "updated onCameraLaunchGestureDetected")
                            "updated onCameraLaunchGestureDetected"
                        )
                    }
                }

+0 −1
Original line number Diff line number Diff line
@@ -187,7 +187,6 @@ constructor(
        applicationScope.launch {
            // TODO(b/296114544): Combine with some global hun state to make it visible!
            deviceProvisioningInteractor.isDeviceProvisioned
                .distinctUntilChanged()
                .flatMapLatest { isAllowedToBeVisible ->
                    if (isAllowedToBeVisible) {
                        combine(
+8 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.dagger.qualifiers.Main
import com.android.systemui.plugins.ActivityStarter
import com.android.systemui.plugins.ActivityStarter.OnDismissAction
import com.android.systemui.scene.shared.flag.SceneContainerFlag
import com.android.systemui.statusbar.SysuiStatusBarStateController
import com.android.systemui.util.concurrency.DelayableExecutor
import dagger.Lazy
@@ -36,10 +37,16 @@ class ActivityStarterImpl
constructor(
    private val statusBarStateController: SysuiStatusBarStateController,
    @Main private val mainExecutor: DelayableExecutor,
    activityStarterInternal: Lazy<ActivityStarterInternalImpl>,
    legacyActivityStarter: Lazy<LegacyActivityStarterInternalImpl>
) : ActivityStarter {

    private val activityStarterInternal: ActivityStarterInternal = legacyActivityStarter.get()
    private val activityStarterInternal: ActivityStarterInternal =
        if (SceneContainerFlag.isEnabled) {
            activityStarterInternal.get()
        } else {
            legacyActivityStarter.get()
        }

    override fun startPendingIntentDismissingKeyguard(intent: PendingIntent) {
        activityStarterInternal.startPendingIntentDismissingKeyguard(
+557 −8

File changed.

Preview size limit exceeded, changes collapsed.

Loading