fix jump to beginning button display

This commit is contained in:
luvletter2333 2021-05-09 23:52:28 +08:00
parent 02395f334e
commit e8ff4351be
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
1 changed files with 1 additions and 2 deletions

View File

@ -7213,8 +7213,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
searchGoToBeginningButton.setImageResource(R.drawable.baseline_arrow_upward_24);
searchGoToBeginningButton.setColorFilter(new PorterDuffColorFilter(Theme.getColor(Theme.key_chat_searchPanelIcons), PorterDuff.Mode.SRC_IN));
searchGoToBeginningButton.setBackgroundDrawable(Theme.createSelectorDrawable(Theme.getColor(Theme.key_actionBarActionModeDefaultSelector), 1));
boolean showSearchUserButton = currentChat != null && (!ChatObject.isChannel(currentChat) || currentChat.megagroup);
searchContainer.addView(searchGoToBeginningButton, LayoutHelper.createFrame(48, 48, Gravity.LEFT | Gravity.TOP, showSearchUserButton ? 48 * 2 : 48, 0, 0, 0));
searchContainer.addView(searchGoToBeginningButton, LayoutHelper.createFrame(48, 48, Gravity.RIGHT | Gravity.TOP, 0, 0, 48 * 2, 0));
searchGoToBeginningButton.setOnClickListener(view -> {
scrollToMessageId(1, 0, false, 0, true, 0);
});