mirror of
https://github.com/mastodon/mastodon-android.git
synced 2025-02-04 12:37:33 +01:00
Merge pull request #685 from LucasGGamerM/mastodon-android
fix(editing-alt-text): fix small oversight on editing existing attachments without alt text
This commit is contained in:
commit
1789d90dc3
@ -597,7 +597,7 @@ public class ComposeMediaViewController{
|
|||||||
public void saveAltTextsBeforePublishing(Runnable onSuccess, Consumer<ErrorResponse> onError){
|
public void saveAltTextsBeforePublishing(Runnable onSuccess, Consumer<ErrorResponse> onError){
|
||||||
ArrayList<UpdateAttachment> updateAltTextRequests=new ArrayList<>();
|
ArrayList<UpdateAttachment> updateAltTextRequests=new ArrayList<>();
|
||||||
for(DraftMediaAttachment att:attachments){
|
for(DraftMediaAttachment att:attachments){
|
||||||
if(!att.descriptionSaved && att.serverAttachment.description == null){
|
if(!att.descriptionSaved && (fragment.editingStatus==null || !fragment.editingStatus.mediaAttachments.contains(att.serverAttachment))){
|
||||||
UpdateAttachment req=new UpdateAttachment(att.serverAttachment.id, att.description);
|
UpdateAttachment req=new UpdateAttachment(att.serverAttachment.id, att.description);
|
||||||
req.setCallback(new Callback<>(){
|
req.setCallback(new Callback<>(){
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user