Fix GooglePlayService Deprecation

This commit is contained in:
Laky64 2022-03-31 17:23:18 +02:00 committed by GitHub
parent 0abe4541dd
commit a001fd3e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,7 +304,7 @@ public class ApplicationLoader extends Application {
private boolean checkPlayServices() { private boolean checkPlayServices() {
try { try {
int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); int resultCode = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);
return resultCode == ConnectionResult.SUCCESS; return resultCode == ConnectionResult.SUCCESS;
} catch (Exception e) { } catch (Exception e) {
FileLog.e(e); FileLog.e(e);