Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt +19 −11 Original line number Diff line number Diff line Loading @@ -101,6 +101,7 @@ import kotlinx.coroutines.flow.combineTransform import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.emptyFlow import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.filterNotNull import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.flatMapLatest import kotlinx.coroutines.flow.flow Loading Loading @@ -796,7 +797,8 @@ constructor( } /** * Wallpaper needs the absolute bottom of notification stack to avoid occlusion * Wallpaper focal area needs the absolute bottom of notification stack to avoid occlusion. It * should not change with notifications in shade. * * @param calculateMaxNotifications is required by getMaxNotifications as calculateSpace by * calling computeMaxKeyguardNotifications in NotificationStackSizeCalculator Loading @@ -820,9 +822,15 @@ constructor( } }, bounds.map { it.top }, ) { height, top -> isOnLockscreenWithoutShade, ) { height, top, isOnLockscreenWithoutShade -> if (isOnLockscreenWithoutShade) { top + height } else { null } } .filterNotNull() } fun notificationStackChanged() { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt +19 −11 Original line number Diff line number Diff line Loading @@ -101,6 +101,7 @@ import kotlinx.coroutines.flow.combineTransform import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.emptyFlow import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.filterNotNull import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.flatMapLatest import kotlinx.coroutines.flow.flow Loading Loading @@ -796,7 +797,8 @@ constructor( } /** * Wallpaper needs the absolute bottom of notification stack to avoid occlusion * Wallpaper focal area needs the absolute bottom of notification stack to avoid occlusion. It * should not change with notifications in shade. * * @param calculateMaxNotifications is required by getMaxNotifications as calculateSpace by * calling computeMaxKeyguardNotifications in NotificationStackSizeCalculator Loading @@ -820,9 +822,15 @@ constructor( } }, bounds.map { it.top }, ) { height, top -> isOnLockscreenWithoutShade, ) { height, top, isOnLockscreenWithoutShade -> if (isOnLockscreenWithoutShade) { top + height } else { null } } .filterNotNull() } fun notificationStackChanged() { Loading