diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-07-19 16:21:00 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-07-19 16:21:00 +0000 |
commit | 0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0 (patch) | |
tree | 2b2e27162d973de0a5e7c75415fd6816aef72c9f /app/src/main/java | |
parent | 216228cf0275d84d1895114fd92cb83a70318c81 (diff) | |
download | infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.tar infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.tar.gz infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.tar.bz2 infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.tar.lz infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.tar.xz infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.tar.zst infinity-for-reddit-0d5cf54af5de84b35a10ec0b4b2e12dbe09715a0.zip |
Fixed bugs when posting without a flair specified. Minor UI tweaks.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/SubmitPost.java | 7 |
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 |