1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-06-28 09:34:05 +00:00

fix view in chat & search

This commit is contained in:
luvletter2333 2022-06-21 21:45:48 +08:00
parent 013a7aaa89
commit e44072e04b
No known key found for this signature in database
GPG Key ID: A26A8880836E1978

View File

@ -2808,7 +2808,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
if (threadMessageId == 0 && !UserObject.isReplyUser(currentUser) || threadMessageObject != null && threadMessageObject.getRepliesCount() == 0) {
searchItem.setVisibility(View.GONE);
}
viewInChatItem.setVisibility(View.VISIBLE);
if (viewInChatItem != null)
viewInChatItem.setVisibility(View.VISIBLE);
searchItemVisible = false;
getMediaDataController().clearFoundMessageObjects();
if (messagesSearchAdapter != null) {
@ -24716,7 +24717,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
audioCallIconItem.setVisibility(View.GONE);
}
searchItemVisible = true;
viewInChatItem.setVisibility(View.GONE);
if (viewInChatItem != null)
viewInChatItem.setVisibility(View.GONE);
updateSearchButtons(0, 0, -1);
updateBottomOverlay();
}