mirror of https://github.com/NekoX-Dev/NekoX.git
Fix always show pinned
This commit is contained in:
parent
3cffc66352
commit
f379ab30e3
|
@ -13495,9 +13495,14 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
|||
pinned_msg_id = 0;
|
||||
}
|
||||
SharedPreferences preferences = MessagesController.getNotificationsSettings(currentAccount);
|
||||
if (chatInfo == null && userInfo == null || pinned_msg_id == 0 || pinned_msg_id == preferences.getInt("pin_" + dialog_id, 0) || actionBar != null && (actionBar.isActionModeShowed() || actionBar.isSearchFieldVisible())) {
|
||||
if (chatInfo == null && userInfo == null || pinned_msg_id == 0 || actionBar != null && (actionBar.isActionModeShowed() || actionBar.isSearchFieldVisible())) {
|
||||
changed = hidePinnedMessageView(animated);
|
||||
headerItem.hideSubItem(show_pinned);
|
||||
} else if (pinned_msg_id == preferences.getInt("pin_" + dialog_id, 0)) {
|
||||
changed = hidePinnedMessageView(animated);
|
||||
headerItem.showSubItem(show_pinned);
|
||||
} else {
|
||||
headerItem.hideSubItem(show_pinned);
|
||||
if (pinnedMessageObject != null) {
|
||||
if (pinnedMessageView.getTag() != null) {
|
||||
pinnedMessageView.setTag(null);
|
||||
|
|
Loading…
Reference in New Issue