Prevent crash

This commit is contained in:
M66B 2022-12-18 21:53:01 +01:00
parent 303b381967
commit 466a04f764
1 changed files with 2 additions and 0 deletions

View File

@ -367,6 +367,8 @@ public class ActivityBilling extends ActivityBase implements
@Override
public void delegate() {
try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
boolean ready = billingClient.isReady();
Log.i("IAB ready=" + ready);
if (!ready)