fix: fixes crash on toot when relocatePublishButton is enabled

This commit is contained in:
LucasGGamerM
2023-08-27 12:17:59 -03:00
parent 12b1825a68
commit 8ae42e0fe1

View File

@@ -1136,7 +1136,12 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
overlayParams.token=mainEditText.getWindowToken();
wm.addView(sendingOverlay, overlayParams);
publishButton.setEnabled(false);
if(GlobalUserPreferences.relocatePublishButton){
publishButtonRelocated.setEnabled(false);
} else {
publishButton.setEnabled(false);
}
V.setVisibilityAnimated(sendProgress, View.VISIBLE);
mediaViewController.saveAltTextsBeforePublishing(this::actuallyPublish, this::handlePublishError);