diff --git a/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java b/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java index c4f46712..327cb45b 100644 --- a/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java +++ b/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java @@ -58,7 +58,7 @@ public class LbrynetMessagingService extends FirebaseMessagingService { String name = payload.get("name"); // notification name String hash = payload.get("hash"); // comment hash - if (type != null && getEnabledTypes().indexOf(type) > -1 && body != null && body.trim().length() > 0) { + if (type != null && getEnabledTypes().contains(type) && body != null && body.trim().length() > 0) { // only log the receive event for valid notifications received if (firebaseAnalytics != null) { Bundle bundle = new Bundle();