From 0016897bb34e0efce905d4903b4e72c195bd6e7d Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:43:23 +0100 Subject: [PATCH] fix(core): half swipe notifier notification Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> --- .../core/features/impl/spying/HalfSwipeNotifier.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/spying/HalfSwipeNotifier.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/spying/HalfSwipeNotifier.kt index 5b587680..37f270fd 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/spying/HalfSwipeNotifier.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/spying/HalfSwipeNotifier.kt @@ -9,7 +9,6 @@ import me.rhunk.snapenhance.core.features.Feature import me.rhunk.snapenhance.core.util.hook.HookStage import me.rhunk.snapenhance.core.util.hook.hook import me.rhunk.snapenhance.core.util.hook.hookConstructor -import me.rhunk.snapenhance.core.util.ktx.getIdentifier import me.rhunk.snapenhance.core.util.ktx.getObjectField import me.rhunk.snapenhance.mapper.impl.CallbackMapper import java.util.concurrent.ConcurrentHashMap @@ -19,7 +18,6 @@ class HalfSwipeNotifier : Feature("Half Swipe Notifier") { private val peekingConversations = ConcurrentHashMap>() private val startPeekingTimestamps = ConcurrentHashMap() - private val svgEyeDrawable by lazy { context.resources.getIdentifier("svg_eye_24x24", "drawable") } private val notificationManager get() = context.androidContext.getSystemService(NotificationManager::class.java) private val translation by lazy { context.translation.getCategory("half_swipe_notifier")} private val channelId by lazy { @@ -121,7 +119,7 @@ class HalfSwipeNotifier : Feature("Half Swipe Notifier") { .setWhen(System.currentTimeMillis()) .setShowWhen(true) .setAutoCancel(true) - .setSmallIcon(svgEyeDrawable) + .setSmallIcon(android.R.drawable.presence_invisible) .build() .let { notification -> notificationManager.notify(System.nanoTime().toInt(), notification)