Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b6d3b4e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove "alwaysShow" developer option for Compact HUN" into main

parents 5c420f2c 2de000b9
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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)
}