fix: fix crash when there is an error on status posting
This commit is contained in:
@@ -1291,7 +1291,13 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
|||||||
wm.removeView(sendingOverlay);
|
wm.removeView(sendingOverlay);
|
||||||
sendingOverlay=null;
|
sendingOverlay=null;
|
||||||
V.setVisibilityAnimated(sendProgress, View.GONE);
|
V.setVisibilityAnimated(sendProgress, View.GONE);
|
||||||
publishButton.setEnabled(true);
|
|
||||||
|
if(GlobalUserPreferences.relocatePublishButton) {
|
||||||
|
publishButtonRelocated.setEnabled(true);
|
||||||
|
} else {
|
||||||
|
publishButton.setEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
if(error instanceof MastodonErrorResponse me){
|
if(error instanceof MastodonErrorResponse me){
|
||||||
new M3AlertDialogBuilder(getActivity())
|
new M3AlertDialogBuilder(getActivity())
|
||||||
.setTitle(R.string.post_failed)
|
.setTitle(R.string.post_failed)
|
||||||
|
|||||||
Reference in New Issue
Block a user