diff options
| author | 2024-04-04 20:46:56 +0000 | |
|---|---|---|
| committer | 2024-04-04 20:46:56 +0000 | |
| commit | 1265dc5010c68b1b3823c75b85b7e4a8dace530f (patch) | |
| tree | 5ebcdf3d338bf78a447a5ce59c709203b9338d6b | |
| parent | a60ca092c8f188daf512e71aef3d663cb3e7082e (diff) | |
| parent | 0401b355295273db904c25372c3611e4322a72d8 (diff) | |
Merge "SceneContainer now depends on NotificationsHeadsUpRefactor" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/scene/shared/flag/SceneContainerFlags.kt | 16 | ||||
| -rw-r--r-- | packages/SystemUI/tests/utils/src/com/android/systemui/flags/EnableSceneContainer.kt | 10 |
2 files changed, 16 insertions, 10 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/scene/shared/flag/SceneContainerFlags.kt b/packages/SystemUI/src/com/android/systemui/scene/shared/flag/SceneContainerFlags.kt index 5664d59c7c48..c9291966bc15 100644 --- a/packages/SystemUI/src/com/android/systemui/scene/shared/flag/SceneContainerFlags.kt +++ b/packages/SystemUI/src/com/android/systemui/scene/shared/flag/SceneContainerFlags.kt @@ -28,6 +28,7 @@ import com.android.systemui.keyguard.KeyguardWmStateRefactor import com.android.systemui.keyguard.MigrateClocksToBlueprint import com.android.systemui.keyguard.shared.ComposeLockscreen import com.android.systemui.media.controls.util.MediaInSceneContainerFlag +import com.android.systemui.statusbar.notification.shared.NotificationsHeadsUpRefactor import com.android.systemui.statusbar.phone.PredictiveBackSysUiFlag import dagger.Module import dagger.Provides @@ -41,11 +42,12 @@ object SceneContainerFlag { inline val isEnabled get() = sceneContainer() && // mainAconfigFlag - KeyguardBottomAreaRefactor.isEnabled && - MigrateClocksToBlueprint.isEnabled && - ComposeLockscreen.isEnabled && - MediaInSceneContainerFlag.isEnabled && + ComposeLockscreen.isEnabled && + KeyguardBottomAreaRefactor.isEnabled && KeyguardWmStateRefactor.isEnabled && + MediaInSceneContainerFlag.isEnabled && + MigrateClocksToBlueprint.isEnabled && + NotificationsHeadsUpRefactor.isEnabled && PredictiveBackSysUiFlag.isEnabled // NOTE: Changes should also be made in getSecondaryFlags and @EnableSceneContainer @@ -55,11 +57,13 @@ object SceneContainerFlag { /** The set of secondary flags which must be enabled for scene container to work properly */ inline fun getSecondaryFlags(): Sequence<FlagToken> = sequenceOf( + ComposeLockscreen.token, KeyguardBottomAreaRefactor.token, - MigrateClocksToBlueprint.token, KeyguardWmStateRefactor.token, - ComposeLockscreen.token, MediaInSceneContainerFlag.token, + MigrateClocksToBlueprint.token, + NotificationsHeadsUpRefactor.token, + PredictiveBackSysUiFlag.token, // NOTE: Changes should also be made in isEnabled and @EnableSceneContainer ) diff --git a/packages/SystemUI/tests/utils/src/com/android/systemui/flags/EnableSceneContainer.kt b/packages/SystemUI/tests/utils/src/com/android/systemui/flags/EnableSceneContainer.kt index 5934e0493efd..c1d2ad6e1be3 100644 --- a/packages/SystemUI/tests/utils/src/com/android/systemui/flags/EnableSceneContainer.kt +++ b/packages/SystemUI/tests/utils/src/com/android/systemui/flags/EnableSceneContainer.kt @@ -22,6 +22,7 @@ import com.android.systemui.Flags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR import com.android.systemui.Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR import com.android.systemui.Flags.FLAG_MEDIA_IN_SCENE_CONTAINER import com.android.systemui.Flags.FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT +import com.android.systemui.Flags.FLAG_NOTIFICATIONS_HEADS_UP_REFACTOR import com.android.systemui.Flags.FLAG_PREDICTIVE_BACK_SYSUI import com.android.systemui.Flags.FLAG_SCENE_CONTAINER @@ -30,13 +31,14 @@ import com.android.systemui.Flags.FLAG_SCENE_CONTAINER * that feature. It is also picked up by [SceneContainerRule] to set non-aconfig prerequisites. */ @EnableFlags( - FLAG_SCENE_CONTAINER, - FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR, - FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT, FLAG_COMPOSE_LOCKSCREEN, - FLAG_MEDIA_IN_SCENE_CONTAINER, + FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR, FLAG_KEYGUARD_WM_STATE_REFACTOR, + FLAG_MEDIA_IN_SCENE_CONTAINER, + FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT, + FLAG_NOTIFICATIONS_HEADS_UP_REFACTOR, FLAG_PREDICTIVE_BACK_SYSUI, + FLAG_SCENE_CONTAINER, ) @Retention(AnnotationRetention.RUNTIME) @Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS) |