diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d19981..fbb6828 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/app.iml b/app/app.iml index 8da6e83..e584633 100644 --- a/app/app.iml +++ b/app/app.iml @@ -93,6 +93,8 @@ + + diff --git a/app/release/AndroidPlugin.jar b/app/release/AndroidPlugin.jar index 3d277e3..bcbcb4c 100644 Binary files a/app/release/AndroidPlugin.jar and b/app/release/AndroidPlugin.jar differ diff --git a/app/src/main/java/thomaz/com/br/httpproject/suport/Request.java b/app/src/main/java/thomaz/com/br/httpproject/suport/Request.java index 2b9cbc4..bb583df 100755 --- a/app/src/main/java/thomaz/com/br/httpproject/suport/Request.java +++ b/app/src/main/java/thomaz/com/br/httpproject/suport/Request.java @@ -42,7 +42,7 @@ public JSONObject call() throws Exception { @Override protected void onSuccess(JSONObject object) throws Exception { - result.onSuccess(object, object.getBoolean("success")); + result.onSuccess(object, object.has("success") && object.getBoolean("success")); } @Override