Skip to content

Commit

Permalink
Fix IllegalStateException
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Nov 4, 2015
1 parent 19d8630 commit b62603b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cordova/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cocoon-plugin-social-android-googleplaygames",
"version": "1.0.4",
"version": "1.0.5",
"description": "Android Google Play Games API",
"cordova": {
"id": "cocoon-plugin-social-android-googleplaygames",
Expand Down
4 changes: 2 additions & 2 deletions src/cordova/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cocoon-plugin-social-android-googleplaygames" version="1.0.4">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cocoon-plugin-social-android-googleplaygames" version="1.0.5">
<name>CocoonGooglePlayGames</name>
<description>Android Google Play Games API</description>
<license>MPL 2.0</license>
Expand Down
2 changes: 1 addition & 1 deletion src/cordova/src/android/GPGService.java
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public boolean isLoggedIn()
}

private String getMyId() {
if (client != null) {
if (isLoggedIn()) {
Person p = Plus.PeopleApi.getCurrentPerson(client);
if (p != null) {
return p.getId();
Expand Down

0 comments on commit b62603b

Please sign in to comment.