Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated GooglePlayServicesUtil #17

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -42,7 +42,7 @@
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
import com.google.android.gms.common.GooglePlayServicesRepairableException;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.common.GoogleApiAvailability;

/**
* Holds functions to query information about the device.
Expand Down Expand Up @@ -146,7 +146,7 @@ public String getUniqueId()

//Google policy is that if the advertising id is available but the user has chosen not to
//enable it then we cannot track the user by falling back on these other methods.
int gpsAvailableResult = GooglePlayServicesUtil.isGooglePlayServicesAvailable(CSApplication.get().getAppContext());
int gpsAvailableResult = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(CSApplication.get().getAppContext());

//If GPS is not potentially available i.e. Kindle etc then we can default to the older id types
//If GPS is potentially available but the user has chosen not to install/update then we cannot fallback on
Expand Down