Fix crash for non selftext posts.

This commit is contained in:
Hermes Junior 2020-06-12 17:18:40 +02:00 committed by OHermesJunior
parent 1b972aca2e
commit e0020e3cf2
2 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ public class ViewPostDetailActivity extends BaseActivity implements FlairBottomS
mMenu.findItem(R.id.action_view_crosspost_parent_view_post_detail_activity).setVisible(mPost.getCrosspostParentId() != null);
if (mPost.getSelfText().equals("[deleted]")) {
if ("[deleted]".equals(mPost.getAuthor()) || "[deleted]".equals(mPost.getSelfText())) {
mMenu.findItem(R.id.action_see_removed_view_post_detail_activity).setVisible(true);
}
}

View File

@ -134,7 +134,7 @@ public class CommentMoreBottomSheetFragment extends RoundedBottomSheetDialogFrag
dismiss();
});
if (commentData.getCommentRawText().equals("[removed]")) {
if ("[removed]".equals(commentData.getCommentRawText())) {
seeRemovedTextView.setVisibility(View.VISIBLE);
seeRemovedTextView.setOnClickListener(view -> {