Loading packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceEntryInteractor.kt +13 −9 Original line number Diff line number Diff line Loading @@ -119,15 +119,18 @@ constructor( * Note: `true` doesn't mean the lockscreen is visible. It may be occluded or covered by other * UI. */ val canSwipeToEnter: StateFlow<Boolean?> = val canSwipeToEnter: StateFlow<Boolean?> by lazy { combine( authenticationInteractor.authenticationMethod.map { it == AuthenticationMethodModel.None }, isLockscreenEnabled, deviceUnlockedInteractor.deviceUnlockStatus, isDeviceEntered ) { isNoneAuthMethod, isLockscreenEnabled, deviceUnlockStatus, isDeviceEntered -> isDeviceEntered) { isNoneAuthMethod, isLockscreenEnabled, deviceUnlockStatus, isDeviceEntered -> val isSwipeAuthMethod = isNoneAuthMethod && isLockscreenEnabled (isSwipeAuthMethod || (deviceUnlockStatus.isUnlocked && Loading @@ -142,6 +145,7 @@ constructor( // from upstream data sources. initialValue = null, ) } /** * Attempt to enter the device and dismiss the lockscreen. If authentication is required to Loading Loading
packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceEntryInteractor.kt +13 −9 Original line number Diff line number Diff line Loading @@ -119,15 +119,18 @@ constructor( * Note: `true` doesn't mean the lockscreen is visible. It may be occluded or covered by other * UI. */ val canSwipeToEnter: StateFlow<Boolean?> = val canSwipeToEnter: StateFlow<Boolean?> by lazy { combine( authenticationInteractor.authenticationMethod.map { it == AuthenticationMethodModel.None }, isLockscreenEnabled, deviceUnlockedInteractor.deviceUnlockStatus, isDeviceEntered ) { isNoneAuthMethod, isLockscreenEnabled, deviceUnlockStatus, isDeviceEntered -> isDeviceEntered) { isNoneAuthMethod, isLockscreenEnabled, deviceUnlockStatus, isDeviceEntered -> val isSwipeAuthMethod = isNoneAuthMethod && isLockscreenEnabled (isSwipeAuthMethod || (deviceUnlockStatus.isUnlocked && Loading @@ -142,6 +145,7 @@ constructor( // from upstream data sources. initialValue = null, ) } /** * Attempt to enter the device and dismiss the lockscreen. If authentication is required to Loading