Fix crash in NotificationsAdapter when spoiler is null. (#2178)
This commit is contained in:
parent
d5e539fd64
commit
59c62204c7
1 changed files with 11 additions and 6 deletions
|
@ -643,12 +643,17 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
||||||
);
|
);
|
||||||
LinkHelper.setClickableText(statusContent, emojifiedText, statusViewData.getMentions(), listener);
|
LinkHelper.setClickableText(statusContent, emojifiedText, statusViewData.getMentions(), listener);
|
||||||
|
|
||||||
CharSequence emojifiedContentWarning = CustomEmojiHelper.emojify(
|
CharSequence emojifiedContentWarning;
|
||||||
statusViewData.getSpoilerText(),
|
if (statusViewData.getSpoilerText() != null) {
|
||||||
statusViewData.getStatusEmojis(),
|
emojifiedContentWarning = CustomEmojiHelper.emojify(
|
||||||
contentWarningDescriptionTextView,
|
statusViewData.getSpoilerText(),
|
||||||
statusDisplayOptions.animateEmojis()
|
statusViewData.getStatusEmojis(),
|
||||||
);
|
contentWarningDescriptionTextView,
|
||||||
|
statusDisplayOptions.animateEmojis()
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
emojifiedContentWarning = "";
|
||||||
|
}
|
||||||
contentWarningDescriptionTextView.setText(emojifiedContentWarning);
|
contentWarningDescriptionTextView.setText(emojifiedContentWarning);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue