Loading packages/SystemUI/src/com/android/systemui/screenshot/proxy/ScreenshotProxyService.kt +4 −2 Original line number Diff line number Diff line Loading @@ -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. */ Loading @@ -56,7 +58,7 @@ constructor( } } override fun getFocusedDisplay(): Int = focusedDisplayRepository.focusedDisplayId.value override fun getFocusedDisplay(): Int = focusedDisplayId.value } private suspend fun executeAfterDismissing(callback: IOnDoneCallback) = Loading Loading
packages/SystemUI/src/com/android/systemui/screenshot/proxy/ScreenshotProxyService.kt +4 −2 Original line number Diff line number Diff line Loading @@ -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. */ Loading @@ -56,7 +58,7 @@ constructor( } } override fun getFocusedDisplay(): Int = focusedDisplayRepository.focusedDisplayId.value override fun getFocusedDisplay(): Int = focusedDisplayId.value } private suspend fun executeAfterDismissing(callback: IOnDoneCallback) = Loading