app/src/main/java/com/pokevian/app/smartfleet/service/LocationWrapper.java
@Override
    public void onConnected(Bundle connectionHint) {
        synchronized (LOCK) {
            if (mGoogleApiClient != null) {
                if (mRequestLocationUpdates) {
                    Log.d(TAG, "onConnected(): request location updates");
                    LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, REQUEST, this);
                    mRequestLocationUpdates = false;
                }
            }
        }
    }
/**
     * Callback called when connected to GCore. Implementation of {@link com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks}.
     */
Callback called when connected to GCore.
Callback called when connected to GCore .
@Override
    public void onConnected(Bundle connectionHint) {
        synchronized (LOCK) {
            if (mGoogleApiClient != null) {
                if (mRequestLocationUpdates) {
                    Log.d(TAG, "onConnected(): request location updates");
                    LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, REQUEST, this);
                    mRequestLocationUpdates = false;
                }
            }
        }
    }
@ Override public void onConnected ( Bundle connectionHint ) { synchronized ( LOCK ) { if ( mGoogleApiClient != null ) { if ( mRequestLocationUpdates ) { Log . d ( TAG , "onConnected(): request location updates" ) ; LocationServices . FusedLocationApi . requestLocationUpdates ( mGoogleApiClient , REQUEST , this ) ; mRequestLocationUpdates = false ; } } } }
Callback called when connected to GCore.
Callback called when connected to GCore .