File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/platforms/android/java/com/github/triniwiz/async Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ public void onProgress(long loaded, long total) {
518
518
result .content = stream .toString ();
519
519
result .contentText = (String ) result .content ;
520
520
callback .onComplete (result );
521
- } else if (returnType .equals ("application/json" )) {
521
+ } else if (returnType .contains ("application/json" )) {
522
522
String returnValue = stream .toString ();
523
523
JSONTokener tokener = new JSONTokener (returnValue );
524
524
Object value = tokener .nextValue ();
@@ -542,7 +542,7 @@ public void onProgress(long loaded, long total) {
542
542
if (isTextType (returnType )) {
543
543
result .content = stream .toString ();
544
544
callback .onCancel (result );
545
- } else if (returnType .equals ("application/json" )) {
545
+ } else if (returnType .contains ("application/json" )) {
546
546
String returnValue = stream .toString ();
547
547
JSONTokener tokener = new JSONTokener (returnValue );
548
548
try {
You can’t perform that action at this time.
0 commit comments