check for contentTitle and channelUrl in payload

This commit is contained in:
Akinwale Ariwodola 2020-03-11 15:55:35 +01:00
parent e217be6b67
commit d38241f0d1

View file

@ -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 {