Skip to content

Commit

Permalink
fix(publish-button): update both button states
Browse files Browse the repository at this point in the history
This is bullshit, I will fix this tomfoolery with the 2 buttons in the rewrite
  • Loading branch information
LucasGGamerM committed Jan 29, 2025
1 parent 0b55885 commit 1bbfc45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ public void updatePublishButtonState(){

if(publishButton==null)
return;
publishButton.setEnabled((!isInstancePixelfed() || !mediaViewController.isEmpty()) && (trimmedCharCount>0 || !mediaViewController.isEmpty()) && charCount<=charLimit && mediaViewController.getNonDoneAttachmentCount()==0 && (pollViewController.isEmpty() || pollViewController.getNonEmptyOptionsCount()>1));
publishButton.setEnabled(((!isInstancePixelfed() || replyTo != null) || !mediaViewController.isEmpty()) && (trimmedCharCount>0 || !mediaViewController.isEmpty()) && charCount<=charLimit && mediaViewController.getNonDoneAttachmentCount()==0 && (pollViewController.isEmpty() || pollViewController.getNonEmptyOptionsCount()>1));
}

private void onCustomEmojiClick(Emoji emoji){
Expand Down

0 comments on commit 1bbfc45

Please sign in to comment.