Make messaging in keepalive more explicit.
This commit is contained in:
parent
c7352f62e5
commit
782464f664
1 changed files with 6 additions and 1 deletions
|
@ -90,11 +90,16 @@ public class SubscriptionKeepAliveJob extends BaseJob {
|
|||
Log.i(TAG, "Successful call to GET active subscription", true);
|
||||
|
||||
ActiveSubscription activeSubscription = activeSubscriptionResponse.getResult().get();
|
||||
if (activeSubscription.getActiveSubscription() == null || !activeSubscription.getActiveSubscription().isActive()) {
|
||||
if (activeSubscription.getActiveSubscription() == null) {
|
||||
Log.i(TAG, "User does not have an active subscription. Exiting.", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!activeSubscription.getActiveSubscription().isActive()) {
|
||||
Log.i(TAG, "User has an inactive subscription. Status message: " + activeSubscription.getActiveSubscription().getStatus() + " Exiting.", true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (activeSubscription.getActiveSubscription().getEndOfCurrentPeriod() > SignalStore.donationsValues().getLastEndOfPeriod()) {
|
||||
Log.i(TAG,
|
||||
String.format(Locale.US,
|
||||
|
|
Loading…
Add table
Reference in a new issue