Skip to content

Commit

Permalink
fix: remove SharedMediaLayout duplicate gotoItem by xtaodada
Browse files Browse the repository at this point in the history
  • Loading branch information
NextAlone committed Jan 10, 2024
1 parent 4a90cdc commit 1c8e082
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1655,13 +1655,7 @@ public void onClick(View view) {
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_windowBackgroundWhiteGrayText2), 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)) {
if (ConfigManager.getBooleanOrFalse(Defines.showNoQuoteForward)) {
forwardNoQuoteItem = new ActionBarMenuItem(context, null, getThemedColor(Theme.key_actionBarActionModeDefaultSelector), getThemedColor(Theme.key_windowBackgroundWhiteGrayText2), false);
Expand Down

0 comments on commit 1c8e082

Please sign in to comment.