mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-16 04:53:53 -04:00
include resendButton in changes
This commit is contained in:
@@ -213,6 +213,7 @@ class ContactsFragment : ScreenFragment("Messages"), Logging {
|
||||
private inner class ActionModeCallback : ActionMode.Callback {
|
||||
override fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean {
|
||||
mode.menuInflater.inflate(R.menu.menu_messages, menu)
|
||||
menu.findItem(R.id.resendButton).isVisible = false
|
||||
mode.title = "1"
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -357,6 +357,7 @@ class MessagesFragment : Fragment(), Logging {
|
||||
}
|
||||
R.id.resendButton -> {
|
||||
debug("User clicked resendButton")
|
||||
val selectedList = messagesAdapter.selectedList
|
||||
var resendText = ""
|
||||
selectedList.forEach {
|
||||
resendText = resendText + it.text + System.lineSeparator()
|
||||
|
||||
Reference in New Issue
Block a user