fix: fix crash when there is an error on status posting

This commit is contained in:
LucasGGamerM
2023-08-30 07:50:32 -03:00
parent 67d89f5799
commit 323018daa9

View File

@@ -1291,7 +1291,13 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
wm.removeView(sendingOverlay);
sendingOverlay=null;
V.setVisibilityAnimated(sendProgress, View.GONE);
publishButton.setEnabled(true);
if(GlobalUserPreferences.relocatePublishButton) {
publishButtonRelocated.setEnabled(true);
} else {
publishButton.setEnabled(true);
}
if(error instanceof MastodonErrorResponse me){
new M3AlertDialogBuilder(getActivity())
.setTitle(R.string.post_failed)