From d38241f0d10d424ca88ca856eb05f3bb08800f05 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 11 Mar 2020 15:55:35 +0100 Subject: [PATCH] check for contentTitle and channelUrl in payload --- .../main/java/io/lbry/browser/LbrynetMessagingService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java b/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java index 7b9cd57a..837f5ebe 100644 --- a/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java +++ b/app/src/main/java/io/lbry/browser/LbrynetMessagingService.java @@ -115,7 +115,11 @@ public class LbrynetMessagingService extends FirebaseMessagingService { url = "lbry://?discover"; } } else { - if (!MainActivity.isServiceRunning(this, LbrynetService.class)) { + if (!MainActivity.isServiceRunning(this, LbrynetService.class) && + contentTitle != null && + channelUrl != null + ) { + // only enter lite mode when contentTitle and channelUrl are set (and the service isn't running yet) // cold start url = url + ((url.indexOf("?") > -1) ? "&liteMode=1" : "?liteMode=1"); try {