File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Source/GDApi/gdapi/src/main/java/com/gd/analytics Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,27 @@ public void onSuccess(JSONObject data) {
41
41
42
42
if (GDlogger .gDad .devListener != null )
43
43
GDlogger .gDad .devListener .onAPINotReady (error );
44
+ GDstatic .enable = false ;
45
+
44
46
}
45
47
46
48
} catch (JSONException e ) {
47
49
e .printStackTrace ();
48
- GDutils .log ("Something went wrong parsing json game data.\n Data:\n " +data .toString ());
50
+ GDutils .log ("Something went wrong parsing json game data." );
51
+ if (GDlogger .gDad .devListener != null )
52
+ GDlogger .gDad .devListener .onAPINotReady ("Something went wrong parsing json game data." );
53
+ GDstatic .enable = false ;
54
+
49
55
}
50
56
}
51
57
52
58
@ Override
53
59
public void onError (VolleyError error ) {
54
60
GDutils .log ("Something went wrong fetching json game data." );
61
+ if (GDlogger .gDad .devListener != null )
62
+ GDlogger .gDad .devListener .onAPINotReady ("Something went wrong fetching json game data." );
63
+ GDstatic .enable = false ;
64
+
55
65
}
56
66
});
57
67
}
You can’t perform that action at this time.
0 commit comments