fix(pixelfed): allow publishing comments without images on pixelfed
This commit is contained in:
@@ -1052,7 +1052,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
|||||||
public void updatePublishButtonState(){
|
public void updatePublishButtonState(){
|
||||||
uuid=null;
|
uuid=null;
|
||||||
if(GlobalUserPreferences.relocatePublishButton && publishButtonRelocated != null){
|
if(GlobalUserPreferences.relocatePublishButton && publishButtonRelocated != null){
|
||||||
publishButtonRelocated.setEnabled((!isInstancePixelfed() || !mediaViewController.isEmpty()) && (trimmedCharCount>0 || !mediaViewController.isEmpty()) && charCount<=charLimit && mediaViewController.getNonDoneAttachmentCount()==0 && (pollViewController.isEmpty() || pollViewController.getNonEmptyOptionsCount()>1));
|
publishButtonRelocated.setEnabled(((!isInstancePixelfed() || replyTo != null) || !mediaViewController.isEmpty()) && (trimmedCharCount>0 || !mediaViewController.isEmpty()) && charCount<=charLimit && mediaViewController.getNonDoneAttachmentCount()==0 && (pollViewController.isEmpty() || pollViewController.getNonEmptyOptionsCount()>1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(publishButton==null)
|
if(publishButton==null)
|
||||||
|
|||||||
Reference in New Issue
Block a user