Skip to content

Commit 10cfaab

Browse files
committed
fix
1 parent 5893f2e commit 10cfaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/freeraspreactnative/dispatchers/ThreatDispatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal class ThreatDispatcher(private val listener: PluginThreatListener) {
4444
}
4545

4646
fun dispatchMalware(apps: MutableList<SuspiciousAppInfo>) {
47-
if (isAppInForeground) {
47+
if (isAppInForeground && isListenerRegistered) {
4848
listener.malwareDetected(apps)
4949
}
5050
else {

0 commit comments

Comments
 (0)