Skip to content

Commit

Permalink
fix(compose-content-type-menu): hopefully fix a crash on this thing b…
Browse files Browse the repository at this point in the history
…eing null

Fuck java
  • Loading branch information
LucasGGamerM committed May 18, 2024
1 parent 711c70a commit 44e3e5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ public void onIconChanged(int icon){
}

int typeIndex=contentType.ordinal();
contentTypePopup.getMenu().findItem(typeIndex).setChecked(true);
if (contentTypePopup.getMenu().findItem(typeIndex) != null)
contentTypePopup.getMenu().findItem(typeIndex).setChecked(true);
contentTypeBtn.setSelected(typeIndex != ContentType.UNSPECIFIED.ordinal() && typeIndex != ContentType.PLAIN.ordinal());

autocompleteViewController=new ComposeAutocompleteViewController(getActivity(), accountID);
Expand Down

0 comments on commit 44e3e5f

Please sign in to comment.