Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/LightRevealScrimInteractor.kt +6 −4 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ constructor( private val lightRevealScrimRepository: LightRevealScrimRepository, @Application private val scope: CoroutineScope, private val scrimLogger: ScrimLogger, powerInteractor: PowerInteractor, private val powerInteractor: PowerInteractor, ) { init { Loading Loading @@ -83,11 +83,13 @@ constructor( // (invisible) jank. However, we need to still pass through 1f and 0f to ensure that the // correct end states are respected even if the screen turned off (or was still off) // when the animation finished powerInteractor.screenPowerState.value != ScreenPowerState.SCREEN_OFF || it == 1f || it == 0f screenIsShowingContent() || it == 1f || it == 0f } private fun screenIsShowingContent() = powerInteractor.screenPowerState.value != ScreenPowerState.SCREEN_OFF && powerInteractor.screenPowerState.value != ScreenPowerState.SCREEN_TURNING_ON companion object { /** Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/LightRevealScrimInteractor.kt +6 −4 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ constructor( private val lightRevealScrimRepository: LightRevealScrimRepository, @Application private val scope: CoroutineScope, private val scrimLogger: ScrimLogger, powerInteractor: PowerInteractor, private val powerInteractor: PowerInteractor, ) { init { Loading Loading @@ -83,11 +83,13 @@ constructor( // (invisible) jank. However, we need to still pass through 1f and 0f to ensure that the // correct end states are respected even if the screen turned off (or was still off) // when the animation finished powerInteractor.screenPowerState.value != ScreenPowerState.SCREEN_OFF || it == 1f || it == 0f screenIsShowingContent() || it == 1f || it == 0f } private fun screenIsShowingContent() = powerInteractor.screenPowerState.value != ScreenPowerState.SCREEN_OFF && powerInteractor.screenPowerState.value != ScreenPowerState.SCREEN_TURNING_ON companion object { /** Loading