Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/SwipeToDismissInteractor.kt +3 −7 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ import javax.inject.Inject import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.stateIn private const val TAG = "SwipeToDismissInteractor" Loading Loading @@ -55,7 +55,7 @@ constructor( */ val dismissFling: StateFlow<FlingInfo?> = shadeRepository.currentFling .map { flingInfo -> .filter { flingInfo -> val isDismiss = flingInfo != null && !flingInfo.expand && Loading @@ -77,11 +77,7 @@ constructor( "isKeyguardDismissible: ${keyguardInteractor.isKeyguardDismissible.value}", ) if (isDismiss) { flingInfo } else { null } isDismiss } .stateIn(backgroundScope, SharingStarted.Eagerly, null) } Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/SwipeToDismissInteractor.kt +3 −7 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ import javax.inject.Inject import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.stateIn private const val TAG = "SwipeToDismissInteractor" Loading Loading @@ -55,7 +55,7 @@ constructor( */ val dismissFling: StateFlow<FlingInfo?> = shadeRepository.currentFling .map { flingInfo -> .filter { flingInfo -> val isDismiss = flingInfo != null && !flingInfo.expand && Loading @@ -77,11 +77,7 @@ constructor( "isKeyguardDismissible: ${keyguardInteractor.isKeyguardDismissible.value}", ) if (isDismiss) { flingInfo } else { null } isDismiss } .stateIn(backgroundScope, SharingStarted.Eagerly, null) }