Skip to content

Commit bf0446a

Browse files
committed
fix: remove duplicated button
Signed-off-by: qwq233 <qwq233@qwq2333.top>
1 parent d47738e commit bf0446a

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

TMessagesProj/src/main/java/org/telegram/ui/Components/SharedMediaLayout.java

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Copyright (C) 2019-2024 qwq233 <qwq233@qwq2333.top>
3+
* https://github.com/qwq233/Nullgram
4+
*
5+
* This program is free software; you can redistribute it and/or
6+
* modify it under the terms of the GNU General Public License
7+
* as published by the Free Software Foundation; either version 2
8+
* of the License, or (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License along with this software.
16+
* If not, see
17+
* <https://www.gnu.org/licenses/>
18+
*/
19+
120
package org.telegram.ui.Components;
221

322
import static org.telegram.messenger.AndroidUtilities.dp;
@@ -66,8 +85,6 @@
6685
import androidx.recyclerview.widget.LinearLayoutManager;
6786
import androidx.recyclerview.widget.RecyclerView;
6887

69-
import com.google.android.exoplayer2.util.Log;
70-
7188
import org.telegram.messenger.AndroidUtilities;
7289
import org.telegram.messenger.AnimationNotificationsLocker;
7390
import org.telegram.messenger.ApplicationLoader;
@@ -146,7 +163,6 @@
146163
import java.util.HashSet;
147164
import java.util.Objects;
148165

149-
import top.qwq2333.gen.Config;
150166
import top.qwq2333.nullgram.config.ConfigManager;
151167
import top.qwq2333.nullgram.utils.Defines;
152168

@@ -1933,13 +1949,6 @@ public void onClick(View view) {
19331949
actionModeLayout.addView(selectedMessagesCountTextView, LayoutHelper.createLinear(0, LayoutHelper.MATCH_PARENT, 1.0f, 18, 0, 0, 0));
19341950
actionModeViews.add(selectedMessagesCountTextView);
19351951

1936-
gotoItem = new ActionBarMenuItem(context, null, getThemedColor(Theme.key_actionBarActionModeDefaultSelector), getThemedColor(Theme.key_windowBackgroundWhiteGrayText2), false);
1937-
gotoItem.setIcon(R.drawable.msg_message);
1938-
gotoItem.setContentDescription(LocaleController.getString("AccDescrGoToMessage", R.string.AccDescrGoToMessage));
1939-
gotoItem.setDuplicateParentStateEnabled(false);
1940-
actionModeLayout.addView(gotoItem, new LinearLayout.LayoutParams(AndroidUtilities.dp(54), ViewGroup.LayoutParams.MATCH_PARENT));
1941-
actionModeViews.add(gotoItem);
1942-
gotoItem.setOnClickListener(v -> onActionBarItemClick(v, gotochat));
19431952
if (!DialogObject.isEncryptedDialog(dialog_id)) {
19441953
if (ConfigManager.getBooleanOrFalse(Defines.showNoQuoteForward)) {
19451954
forwardNoQuoteItem = new ActionBarMenuItem(context, null, getThemedColor(Theme.key_actionBarActionModeDefaultSelector), getThemedColor(Theme.key_windowBackgroundWhiteGrayText2), false);

0 commit comments

Comments
 (0)