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

Commit 2de000b9 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Remove "alwaysShow" developer option for Compact HUN

Flag: android.app.compact_heads_up_notification
Test: n/a
Bug: 270709257
Change-Id: I088734697e4de6ff377a2ebfaeb4b629f7143788
parent fe9ee5b6
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)
}