Loading packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ constructor( modifier: Modifier, ) = BouncerScene( viewModel = rememberViewModel { contentViewModelFactory.create() }, viewModel = rememberViewModel("BouncerScene") { contentViewModelFactory.create() }, dialogFactory = dialogFactory, modifier = modifier, ) Loading packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/LockscreenContent.kt +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ class LockscreenContent( fun SceneScope.Content( modifier: Modifier = Modifier, ) { val viewModel = rememberViewModel { viewModelFactory.create() } val viewModel = rememberViewModel("LockscreenContent") { viewModelFactory.create() } val isContentVisible: Boolean by viewModel.isContentVisible.collectAsStateWithLifecycle() if (!isContentVisible) { // If the content isn't supposed to be visible, show a large empty box as it's needed Loading packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/NotificationSection.kt +2 −2 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ constructor( fun SceneScope.HeadsUpNotifications() { SnoozeableHeadsUpNotificationSpace( stackScrollView = stackScrollView.get(), viewModel = rememberViewModel { viewModelFactory.create() }, viewModel = rememberViewModel("HeadsUpNotifications") { viewModelFactory.create() }, ) } Loading @@ -107,7 +107,7 @@ constructor( ConstrainedNotificationStack( stackScrollView = stackScrollView.get(), viewModel = rememberViewModel { viewModelFactory.create() }, viewModel = rememberViewModel("Notifications") { viewModelFactory.create() }, modifier = modifier .fillMaxWidth() Loading packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationsShadeScene.kt +4 −3 Original line number Diff line number Diff line Loading @@ -81,7 +81,8 @@ constructor( override fun SceneScope.Content( modifier: Modifier, ) { val notificationsPlaceholderViewModel = rememberViewModel { val notificationsPlaceholderViewModel = rememberViewModel("NotificationsShadeScene") { notificationsPlaceholderViewModelFactory.create() } Loading packages/SystemUI/compose/features/src/com/android/systemui/qs/ui/composable/QuickSettingsScene.kt +8 −5 Original line number Diff line number Diff line Loading @@ -152,7 +152,9 @@ constructor( notificationStackScrollView = notificationStackScrollView.get(), viewModelFactory = contentViewModelFactory, notificationsPlaceholderViewModel = rememberViewModel { notificationsPlaceholderViewModelFactory.create() }, rememberViewModel("QuickSettingsScene-notifPlaceholderViewModel") { notificationsPlaceholderViewModelFactory.create() }, createTintedIconManager = tintedIconManagerFactory::create, createBatteryMeterViewController = batteryMeterViewControllerFactory::create, statusBarIconController = statusBarIconController, Loading @@ -179,8 +181,9 @@ private fun SceneScope.QuickSettingsScene( ) { val cutoutLocation = LocalDisplayCutout.current.location val viewModel = rememberViewModel { viewModelFactory.create() } val brightnessMirrorViewModel = rememberViewModel { val viewModel = rememberViewModel("QuickSettingsScene-viewModel") { viewModelFactory.create() } val brightnessMirrorViewModel = rememberViewModel("QuickSettingsScene-brightnessMirrorViewModel") { viewModel.brightnessMirrorViewModelFactory.create() } val brightnessMirrorShowing by brightnessMirrorViewModel.isShowing.collectAsStateWithLifecycle() Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ constructor( modifier: Modifier, ) = BouncerScene( viewModel = rememberViewModel { contentViewModelFactory.create() }, viewModel = rememberViewModel("BouncerScene") { contentViewModelFactory.create() }, dialogFactory = dialogFactory, modifier = modifier, ) Loading
packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/LockscreenContent.kt +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ class LockscreenContent( fun SceneScope.Content( modifier: Modifier = Modifier, ) { val viewModel = rememberViewModel { viewModelFactory.create() } val viewModel = rememberViewModel("LockscreenContent") { viewModelFactory.create() } val isContentVisible: Boolean by viewModel.isContentVisible.collectAsStateWithLifecycle() if (!isContentVisible) { // If the content isn't supposed to be visible, show a large empty box as it's needed Loading
packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/NotificationSection.kt +2 −2 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ constructor( fun SceneScope.HeadsUpNotifications() { SnoozeableHeadsUpNotificationSpace( stackScrollView = stackScrollView.get(), viewModel = rememberViewModel { viewModelFactory.create() }, viewModel = rememberViewModel("HeadsUpNotifications") { viewModelFactory.create() }, ) } Loading @@ -107,7 +107,7 @@ constructor( ConstrainedNotificationStack( stackScrollView = stackScrollView.get(), viewModel = rememberViewModel { viewModelFactory.create() }, viewModel = rememberViewModel("Notifications") { viewModelFactory.create() }, modifier = modifier .fillMaxWidth() Loading
packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationsShadeScene.kt +4 −3 Original line number Diff line number Diff line Loading @@ -81,7 +81,8 @@ constructor( override fun SceneScope.Content( modifier: Modifier, ) { val notificationsPlaceholderViewModel = rememberViewModel { val notificationsPlaceholderViewModel = rememberViewModel("NotificationsShadeScene") { notificationsPlaceholderViewModelFactory.create() } Loading
packages/SystemUI/compose/features/src/com/android/systemui/qs/ui/composable/QuickSettingsScene.kt +8 −5 Original line number Diff line number Diff line Loading @@ -152,7 +152,9 @@ constructor( notificationStackScrollView = notificationStackScrollView.get(), viewModelFactory = contentViewModelFactory, notificationsPlaceholderViewModel = rememberViewModel { notificationsPlaceholderViewModelFactory.create() }, rememberViewModel("QuickSettingsScene-notifPlaceholderViewModel") { notificationsPlaceholderViewModelFactory.create() }, createTintedIconManager = tintedIconManagerFactory::create, createBatteryMeterViewController = batteryMeterViewControllerFactory::create, statusBarIconController = statusBarIconController, Loading @@ -179,8 +181,9 @@ private fun SceneScope.QuickSettingsScene( ) { val cutoutLocation = LocalDisplayCutout.current.location val viewModel = rememberViewModel { viewModelFactory.create() } val brightnessMirrorViewModel = rememberViewModel { val viewModel = rememberViewModel("QuickSettingsScene-viewModel") { viewModelFactory.create() } val brightnessMirrorViewModel = rememberViewModel("QuickSettingsScene-brightnessMirrorViewModel") { viewModel.brightnessMirrorViewModelFactory.create() } val brightnessMirrorShowing by brightnessMirrorViewModel.isShowing.collectAsStateWithLifecycle() Loading