Skip to content

Commit

Permalink
fix: crash when publishing a scheduled post with the relocated publis…
Browse files Browse the repository at this point in the history
…h button and an error occurs

Goddamnit, at least its fixed
  • Loading branch information
LucasGGamerM committed Dec 17, 2023
1 parent f1c55aa commit 6220a20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ public void onError(ErrorResponse error) {
.setPositiveButton(R.string.ok, (a, b)->{})
.show();
handlePublishError(null);
publishButton.setEnabled(false);
(GlobalUserPreferences.relocatePublishButton ? publishButtonRelocated : publishButton).setEnabled(false);
}

if (replyTo == null) updateRecentLanguages();
Expand All @@ -1320,7 +1320,7 @@ private void openPreview(Status result){
result.preview=true;
wm.removeView(sendingOverlay);
sendingOverlay=null;
publishButton.setEnabled(true);
(GlobalUserPreferences.relocatePublishButton ? publishButtonRelocated : publishButton).setEnabled(true);
V.setVisibilityAnimated(sendProgress, View.GONE);
InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class);
imm.hideSoftInputFromWindow(contentView.getWindowToken(), 0);
Expand Down

0 comments on commit 6220a20

Please sign in to comment.