mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
include resendButton in changes
This commit is contained in:
parent
89811d4aa4
commit
def08cde75
2 changed files with 2 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ class ContactsFragment : ScreenFragment("Messages"), Logging {
|
||||||
private inner class ActionModeCallback : ActionMode.Callback {
|
private inner class ActionModeCallback : ActionMode.Callback {
|
||||||
override fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean {
|
override fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean {
|
||||||
mode.menuInflater.inflate(R.menu.menu_messages, menu)
|
mode.menuInflater.inflate(R.menu.menu_messages, menu)
|
||||||
|
menu.findItem(R.id.resendButton).isVisible = false
|
||||||
mode.title = "1"
|
mode.title = "1"
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -357,6 +357,7 @@ class MessagesFragment : Fragment(), Logging {
|
||||||
}
|
}
|
||||||
R.id.resendButton -> {
|
R.id.resendButton -> {
|
||||||
debug("User clicked resendButton")
|
debug("User clicked resendButton")
|
||||||
|
val selectedList = messagesAdapter.selectedList
|
||||||
var resendText = ""
|
var resendText = ""
|
||||||
selectedList.forEach {
|
selectedList.forEach {
|
||||||
resendText = resendText + it.text + System.lineSeparator()
|
resendText = resendText + it.text + System.lineSeparator()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue