Skip to content

Commit

Permalink
fix google api availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aefyr committed Jan 31, 2021
1 parent 05d2ff1 commit 3854ace
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.android.billingclient.api.SkuDetails;
import com.android.billingclient.api.SkuDetailsParams;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.GoogleApiAvailabilityLight;

import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -172,7 +172,7 @@ private DonationStatus getCachedDonationStatus() {
}

private boolean areGooglePlayServicesAvailable() {
return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mContext) == ConnectionResult.SUCCESS;
return GoogleApiAvailabilityLight.getInstance().isGooglePlayServicesAvailable(mContext) == ConnectionResult.SUCCESS;
}

@Override
Expand Down

0 comments on commit 3854ace

Please sign in to comment.