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

Commit bff1b687 authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Hold StateFlow for focusedDisplayId in ScreenshotProxyService" into main

parents acc6b4c3 e7392180
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -38,9 +38,11 @@ constructor(
    private val mExpansionMgr: ShadeExpansionStateManager,
    @Main private val mMainDispatcher: CoroutineDispatcher,
    private val activityStarter: ActivityStarter,
    private val focusedDisplayRepository: FocusedDisplayRepository,
    focusedDisplayRepository: FocusedDisplayRepository,
) : LifecycleService() {

    private val focusedDisplayId = focusedDisplayRepository.focusedDisplayId

    private val mBinder: IBinder =
        object : IScreenshotProxy.Stub() {
            /** @return true when the notification shade is partially or fully expanded. */
@@ -56,7 +58,7 @@ constructor(
                }
            }

            override fun getFocusedDisplay(): Int = focusedDisplayRepository.focusedDisplayId.value
            override fun getFocusedDisplay(): Int = focusedDisplayId.value
        }

    private suspend fun executeAfterDismissing(callback: IOnDoneCallback) =