mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Fix crash for non selftext posts.
This commit is contained in:
parent
1b972aca2e
commit
e0020e3cf2
@ -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);
|
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);
|
mMenu.findItem(R.id.action_see_removed_view_post_detail_activity).setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ public class CommentMoreBottomSheetFragment extends RoundedBottomSheetDialogFrag
|
|||||||
dismiss();
|
dismiss();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (commentData.getCommentRawText().equals("[removed]")) {
|
if ("[removed]".equals(commentData.getCommentRawText())) {
|
||||||
seeRemovedTextView.setVisibility(View.VISIBLE);
|
seeRemovedTextView.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
seeRemovedTextView.setOnClickListener(view -> {
|
seeRemovedTextView.setOnClickListener(view -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user