Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 506f376

Browse files
#45 login and trySilendLogin now return userdata on Android
1 parent 769dd15 commit 506f376

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="nl.x-services.plugins.googleplus"
5-
version="1.1.0">
5+
version="1.1.1">
66

77
<name>Google+</name>
88

Diff for: src/android/GooglePlus.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public boolean execute(String action, CordovaArgs args, CallbackContext callback
6565

6666
} else if (ACTION_LOGIN.equals(action)) {
6767
this.trySilentLogin = false;
68-
mGoogleApiClient.connect();
68+
mGoogleApiClient.reconnect();
6969

7070
} else if (ACTION_TRY_SILENT_LOGIN.equals(action)) {
7171
this.trySilentLogin = true;
72-
mGoogleApiClient.connect();
72+
mGoogleApiClient.reconnect();
7373

7474
} else if (ACTION_LOGOUT.equals(action)) {
7575
try {
@@ -124,8 +124,8 @@ private void resolveToken(final String email, final JSONObject result) {
124124

125125
cordova.getThreadPool().execute(new Runnable() {
126126
public void run() {
127-
String scope = null;
128-
String token = null;
127+
String scope;
128+
String token;
129129

130130
try {
131131
if (GooglePlus.this.webKey != null){

0 commit comments

Comments
 (0)