We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a866f0 + 48ec667 commit e7c7993Copy full SHA for e7c7993
1 file changed
docs/html/training/location/retrieve-current.jd
@@ -167,13 +167,12 @@ public class MainActivity extends FragmentActivity {
167
"Google Play services is available.");
168
// Continue
169
return true;
170
- // Google Play services was not available for some reason
+ // Google Play services was not available for some reason.
171
+ // resultCode holds the error code.
172
} else {
- // Get the error code
173
- int errorCode = connectionResult.getErrorCode();
174
// Get the error dialog from Google Play services
175
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
176
- errorCode,
+ resultCode,
177
this,
178
CONNECTION_FAILURE_RESOLUTION_REQUEST);
179
0 commit comments