From 251d885836dc2e94ad2eeaee444b6c7907fe6277 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 8 Feb 2023 10:08:37 +0100 Subject: [PATCH] renaming a menu item --- .../smsmessenger/adapters/ConversationsAdapter.kt | 4 ++-- app/src/main/res/menu/cab_conversations.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ConversationsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ConversationsAdapter.kt index 4b9d219d..45583072 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ConversationsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ConversationsAdapter.kt @@ -68,7 +68,7 @@ class ConversationsAdapter( findItem(R.id.cab_add_number_to_contact).isVisible = isSingleSelection && !isGroupConversation findItem(R.id.cab_dial_number).isVisible = isSingleSelection && !isGroupConversation && !isShortCodeWithLetters(selectedConversation!!.phoneNumber) findItem(R.id.cab_copy_number).isVisible = isSingleSelection && !isGroupConversation - findItem(R.id.rename_conversation).isVisible = isSingleSelection && isGroupConversation + findItem(R.id.cab_rename_conversation).isVisible = isSingleSelection && isGroupConversation findItem(R.id.cab_mark_as_read).isVisible = selectedItems.any { !it.read } findItem(R.id.cab_mark_as_unread).isVisible = selectedItems.any { it.read } checkPinBtnVisibility(this) @@ -86,7 +86,7 @@ class ConversationsAdapter( R.id.cab_dial_number -> dialNumber() R.id.cab_copy_number -> copyNumberToClipboard() R.id.cab_delete -> askConfirmDelete() - R.id.rename_conversation -> renameConversation(getSelectedItems().first()) + R.id.cab_rename_conversation -> renameConversation(getSelectedItems().first()) R.id.cab_mark_as_read -> markAsRead() R.id.cab_mark_as_unread -> markAsUnread() R.id.cab_pin_conversation -> pinConversation(true) diff --git a/app/src/main/res/menu/cab_conversations.xml b/app/src/main/res/menu/cab_conversations.xml index 883bc917..9044cd72 100644 --- a/app/src/main/res/menu/cab_conversations.xml +++ b/app/src/main/res/menu/cab_conversations.xml @@ -32,7 +32,7 @@ android:title="@string/copy_number_to_clipboard" app:showAsAction="never" />