diff options
| author | 2024-11-13 03:38:20 +0000 | |
|---|---|---|
| committer | 2024-11-13 06:11:40 +0000 | |
| commit | 761ae705a8fc250c6ecce89fbbf5bd8f35d3d787 (patch) | |
| tree | 7b17493cb82c4844f501edbe54ed5c93fa2761b8 | |
| parent | f5adb8d189ded03d667420730587097196c12f2a (diff) | |
Check sceneContainer Flag before activating DeviceUnlockedInteractor
Bug: 370795290
Change-Id: I538ef9652d83b3f0603fc6686d2802f81a2aa227
Flag: com.android.systemui.scene_container
Test: NA
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceUnlockedInteractor.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceUnlockedInteractor.kt b/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceUnlockedInteractor.kt index b74ca035a229..35eed5e6a6d9 100644 --- a/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceUnlockedInteractor.kt +++ b/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/DeviceUnlockedInteractor.kt @@ -35,6 +35,7 @@ import com.android.systemui.keyguard.domain.interactor.TrustInteractor import com.android.systemui.lifecycle.ExclusiveActivatable import com.android.systemui.power.domain.interactor.PowerInteractor import com.android.systemui.power.shared.model.WakeSleepReason +import com.android.systemui.scene.shared.flag.SceneContainerFlag import com.android.systemui.util.settings.repository.UserAwareSecureSettingsRepository import com.android.systemui.utils.coroutines.flow.flatMapLatestConflated import javax.inject.Inject @@ -363,6 +364,9 @@ constructor( private val interactor: DeviceUnlockedInteractor, ) : CoreStartable { override fun start() { + if (!SceneContainerFlag.isEnabled) + return + applicationScope.launch { interactor.activate() } } } |