aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhonboy121 <alfredmathew05@gmail.com>2022-02-16 18:50:34 +0530
committernebrassy <nebras30@gmail.com>2022-04-21 15:29:10 +0200
commite05151620c7d8b8e40bfb44c20ba51965009bdcb (patch)
tree1a575246ba275c02634dfe36ff01361602cb4e95
parent172646f37758f6d971bc5bed7060fd5c96e5c320 (diff)
GamingMode: don't show notification overlay for secure notifications
Signed-off-by: jhonboy121 <alfredmathew05@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org> Change-Id: I71729c8117ec209d7d68b5eb8fe35f50c1b3f16f
-rw-r--r--app/src/main/java/org/exthmui/game/services/NotificationService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/org/exthmui/game/services/NotificationService.kt b/app/src/main/java/org/exthmui/game/services/NotificationService.kt
index cfdc28a..2bd344e 100644
--- a/app/src/main/java/org/exthmui/game/services/NotificationService.kt
+++ b/app/src/main/java/org/exthmui/game/services/NotificationService.kt
@@ -34,7 +34,7 @@ class NotificationService : NotificationListenerService() {
override fun onNotificationPosted(sbn: StatusBarNotification) {
if (notificationOverlayController?.showNotificationOverlay != true) return
- if (!sbn.isClearable || sbn.isOngoing) return
+ if (!sbn.isClearable || sbn.isOngoing || sbn.getIsContentSecure()) return
val extras = sbn.notification.extras
if (!isInBlackList(sbn.packageName)) {
val lastNotification = lastNotificationMap.getOrDefault(sbn.packageName, "")