From eb643ad3d2e39f5c02680b9e5f63a8dddc615fc3 Mon Sep 17 00:00:00 2001 From: benya Date: Sun, 5 Apr 2026 19:36:50 +0300 Subject: [PATCH] fix: silence notification and media opt-in warnings Suppress the safe notification permission lint after explicit runtime gating. Opt ChatScreen into Media3 unstable APIs at the file level for the shared media pipeline. --- .../messenger/core/notifications/NotificationDispatcher.kt | 2 ++ .../src/main/java/ru/daemonlord/messenger/ui/chat/ChatScreen.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/android/app/src/main/java/ru/daemonlord/messenger/core/notifications/NotificationDispatcher.kt b/android/app/src/main/java/ru/daemonlord/messenger/core/notifications/NotificationDispatcher.kt index 9766799..b7eb873 100644 --- a/android/app/src/main/java/ru/daemonlord/messenger/core/notifications/NotificationDispatcher.kt +++ b/android/app/src/main/java/ru/daemonlord/messenger/core/notifications/NotificationDispatcher.kt @@ -1,3 +1,5 @@ +@file:Suppress("MissingPermission") + package ru.daemonlord.messenger.core.notifications import android.Manifest diff --git a/android/app/src/main/java/ru/daemonlord/messenger/ui/chat/ChatScreen.kt b/android/app/src/main/java/ru/daemonlord/messenger/ui/chat/ChatScreen.kt index e852403..47c699b 100644 --- a/android/app/src/main/java/ru/daemonlord/messenger/ui/chat/ChatScreen.kt +++ b/android/app/src/main/java/ru/daemonlord/messenger/ui/chat/ChatScreen.kt @@ -1,3 +1,5 @@ +@file:OptIn(UnstableApi::class) + package ru.daemonlord.messenger.ui.chat import android.Manifest