Subversion Repositories SmartDukaan

Rev

Rev 22831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22831 Rev 23185
Line 241... Line 241...
241
 
241
 
242
    /**
242
    /**
243
     * Method to resolve any signin errors
243
     * Method to resolve any signin errors
244
     * */
244
     * */
245
    private void resolveSignInError() {
245
    private void resolveSignInError() {
-
 
246
        if (mConnectionResult != null) {
246
        if (mConnectionResult.hasResolution()) {
247
        if (mConnectionResult.hasResolution()) {
247
            try {
248
            try {
248
                mIntentInProgress = true;
249
                mIntentInProgress = true;
249
                mConnectionResult.startResolutionForResult(this, RC_SIGN_IN);
250
                mConnectionResult.startResolutionForResult(this, RC_SIGN_IN);
250
            }
251
            }
Line 254... Line 255...
254
                mIntentInProgress = false;
255
                mIntentInProgress = false;
255
                mGoogleApiClient.connect();
256
                mGoogleApiClient.connect();
256
                revokeGplusAccess();
257
                revokeGplusAccess();
257
            }
258
            }
258
        }
259
        }
259
    }
260
    }}
260
 
261
 
261
    /**
262
    /**
262
     * Revoking access from google
263
     * Revoking access from google
263
     * */
264
     * */
264
    private void revokeGplusAccess() {
265
    private void revokeGplusAccess() {