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

Commit 361a85ab authored by Jeff DeCew's avatar Jeff DeCew Committed by Ibrahim Yilmaz
Browse files

[Minimal HUN] Do not query SystemProperties on USER builds

Change-Id: Ia86815c32db969f84b0849219e70c2da70eb71f1
Flag: android.app.compact_heads_up_notification
Bug: 270709257
Test: manual
parent 3e7db78c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.systemui.statusbar.notification.row
import android.app.Flags
import android.os.SystemProperties
import com.android.systemui.statusbar.data.repository.StatusBarModeRepositoryStore
import com.android.systemui.util.Compile
import javax.inject.Inject

/**
@@ -43,5 +44,6 @@ constructor(private val statusBarModeRepositoryStore: StatusBarModeRepositorySto

    /** 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)
}