Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/HeadsUpStyleProvider.kt +1 −6 Original line number Diff line number Diff line Loading @@ -36,14 +36,9 @@ constructor(private val statusBarModeRepositoryStore: StatusBarModeRepositorySto HeadsUpStyleProvider { override fun shouldApplyCompactStyle(): Boolean { return Flags.compactHeadsUpNotification() && (isInImmersiveMode() || alwaysShow()) return Flags.compactHeadsUpNotification() && isInImmersiveMode() } private fun isInImmersiveMode() = statusBarModeRepositoryStore.defaultDisplay.isInFullscreenMode.value /** developer setting to always show Minimal HUN, even if the device is not in full screen */ private fun alwaysShow() = Compile.IS_DEBUG && SystemProperties.getBoolean("persist.compact_heads_up_notification.always_show", false) } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/HeadsUpStyleProvider.kt +1 −6 Original line number Diff line number Diff line Loading @@ -36,14 +36,9 @@ constructor(private val statusBarModeRepositoryStore: StatusBarModeRepositorySto HeadsUpStyleProvider { override fun shouldApplyCompactStyle(): Boolean { return Flags.compactHeadsUpNotification() && (isInImmersiveMode() || alwaysShow()) return Flags.compactHeadsUpNotification() && isInImmersiveMode() } private fun isInImmersiveMode() = statusBarModeRepositoryStore.defaultDisplay.isInFullscreenMode.value /** developer setting to always show Minimal HUN, even if the device is not in full screen */ private fun alwaysShow() = Compile.IS_DEBUG && SystemProperties.getBoolean("persist.compact_heads_up_notification.always_show", false) }