fix: remove SharedMediaLayout duplicate gotoItem

This commit is contained in:
xtaodada 2024-01-10 17:23:22 +08:00
parent 92bf87d4a2
commit 0c1787d430
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -1670,14 +1670,6 @@ public class SharedMediaLayout extends FrameLayout implements NotificationCenter
actionModeLayout.addView(selectedMessagesCountTextView, LayoutHelper.createLinear(0, LayoutHelper.MATCH_PARENT, 1.0f, 18, 0, 0, 0));
actionModeViews.add(selectedMessagesCountTextView);
gotoItem = new ActionBarMenuItem(context, null, getThemedColor(Theme.key_actionBarActionModeDefaultSelector), getThemedColor(Theme.key_actionBarActionModeDefaultIcon), false);
gotoItem.setIcon(R.drawable.msg_message);
gotoItem.setContentDescription(LocaleController.getString("AccDescrGoToMessage", R.string.AccDescrGoToMessage));
gotoItem.setDuplicateParentStateEnabled(false);
actionModeLayout.addView(gotoItem, new LinearLayout.LayoutParams(AndroidUtilities.dp(54), ViewGroup.LayoutParams.MATCH_PARENT));
actionModeViews.add(gotoItem);
gotoItem.setOnClickListener(v -> onActionBarItemClick(v, gotochat));
if (!DialogObject.isEncryptedDialog(dialog_id)) {
forwardNoQuoteItem = new ActionBarMenuItem(context, null, Theme.getColor(Theme.key_actionBarActionModeDefaultSelector), Theme.getColor(Theme.key_windowBackgroundWhiteGrayText2), false);
forwardNoQuoteItem.setIcon(R.drawable.msg_forward_noquote);