|
| 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 | + |
1 | 20 | package org.telegram.ui.Components;
|
2 | 21 |
|
3 | 22 | import static org.telegram.messenger.AndroidUtilities.dp;
|
|
66 | 85 | import androidx.recyclerview.widget.LinearLayoutManager;
|
67 | 86 | import androidx.recyclerview.widget.RecyclerView;
|
68 | 87 |
|
69 |
| -import com.google.android.exoplayer2.util.Log; |
70 |
| - |
71 | 88 | import org.telegram.messenger.AndroidUtilities;
|
72 | 89 | import org.telegram.messenger.AnimationNotificationsLocker;
|
73 | 90 | import org.telegram.messenger.ApplicationLoader;
|
|
146 | 163 | import java.util.HashSet;
|
147 | 164 | import java.util.Objects;
|
148 | 165 |
|
149 |
| -import top.qwq2333.gen.Config; |
150 | 166 | import top.qwq2333.nullgram.config.ConfigManager;
|
151 | 167 | import top.qwq2333.nullgram.utils.Defines;
|
152 | 168 |
|
@@ -1933,13 +1949,6 @@ public void onClick(View view) {
|
1933 | 1949 | actionModeLayout.addView(selectedMessagesCountTextView, LayoutHelper.createLinear(0, LayoutHelper.MATCH_PARENT, 1.0f, 18, 0, 0, 0));
|
1934 | 1950 | actionModeViews.add(selectedMessagesCountTextView);
|
1935 | 1951 |
|
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)); |
1943 | 1952 | if (!DialogObject.isEncryptedDialog(dialog_id)) {
|
1944 | 1953 | if (ConfigManager.getBooleanOrFalse(Defines.showNoQuoteForward)) {
|
1945 | 1954 | forwardNoQuoteItem = new ActionBarMenuItem(context, null, getThemedColor(Theme.key_actionBarActionModeDefaultSelector), getThemedColor(Theme.key_windowBackgroundWhiteGrayText2), false);
|
|
0 commit comments