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

Fixed a bug with signOut() not forgetting previous account #763

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 7 additions & 1 deletion src/android/GooglePlus.java
Expand Up @@ -101,7 +101,13 @@ public boolean execute(String action, CordovaArgs args, CallbackContext callback

} else if (ACTION_LOGOUT.equals(action)) {
Log.i(TAG, "Trying to logout!");
signOut();
new AsyncTask<String, String, String>() {
@Override
protected String doInBackground(String... params) {
signOut();
return null;
}
}.execute();

} else if (ACTION_DISCONNECT.equals(action)) {
Log.i(TAG, "Trying to disconnect the user");
Expand Down