aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/SubmitPost.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/SubmitPost.java b/app/src/main/java/ml/docilealligator/infinityforreddit/SubmitPost.java
index 3d63b97a..50a1107b 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/SubmitPost.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/SubmitPost.java
@@ -159,7 +159,6 @@ class SubmitPost {
} else {
submitPostListener.submitFailed(response.message());
}
- Log.i("image", "dddd" + response.code());
}
@Override
@@ -199,7 +198,10 @@ class SubmitPost {
params.put(RedditUtils.VIDEO_POSTER_URL_KEY, posterUrl);
break;
}
- params.put(RedditUtils.FLAIR_TEXT_KEY, flair);
+
+ if(flair != null) {
+ params.put(RedditUtils.FLAIR_TEXT_KEY, flair);
+ }
params.put(RedditUtils.SPOILER_KEY, Boolean.toString(isSpoiler));
params.put(RedditUtils.NSFW_KEY, Boolean.toString(isNSFW));
@@ -297,7 +299,6 @@ class SubmitPost {
} else {
uploadImageListener.uploadFailed(response.message());
}
- Log.i("image", "dddd" + response.body());
}
@Override