We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5893f2e commit 10cfaabCopy full SHA for 10cfaab
android/src/main/java/com/freeraspreactnative/dispatchers/ThreatDispatcher.kt
@@ -44,7 +44,7 @@ internal class ThreatDispatcher(private val listener: PluginThreatListener) {
44
}
45
46
fun dispatchMalware(apps: MutableList<SuspiciousAppInfo>) {
47
- if (isAppInForeground) {
+ if (isAppInForeground && isListenerRegistered) {
48
listener.malwareDetected(apps)
49
50
else {
0 commit comments