mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-06 05:49:49 +02:00
Fixed bugs when posting without a flair specified. Minor UI tweaks.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user