check for contentTitle and channelUrl in payload
This commit is contained in:
parent
e217be6b67
commit
d38241f0d1
1 changed files with 5 additions and 1 deletions
|
@ -115,7 +115,11 @@ public class LbrynetMessagingService extends FirebaseMessagingService {
|
||||||
url = "lbry://?discover";
|
url = "lbry://?discover";
|
||||||
}
|
}
|
||||||
} else {
|
} 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
|
// cold start
|
||||||
url = url + ((url.indexOf("?") > -1) ? "&liteMode=1" : "?liteMode=1");
|
url = url + ((url.indexOf("?") > -1) ? "&liteMode=1" : "?liteMode=1");
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue