fix: remove SharedMediaLayout duplicate gotoItem
This commit is contained in:
parent
92bf87d4a2
commit
0c1787d430
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user