mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
meshtastic#73 'Resend Button' on message selection
This commit is contained in:
parent
1ca1642cb9
commit
6f9f2c4b04
5 changed files with 24 additions and 0 deletions
|
|
@ -305,6 +305,14 @@ class MessagesFragment : Fragment(), Logging {
|
|||
actionMode?.title = selectedList.size.toString()
|
||||
notifyDataSetChanged()
|
||||
}
|
||||
R.id.resendButton -> {
|
||||
debug("User clicked resendButton")
|
||||
var resendText:String = ""
|
||||
selectedList.forEach {
|
||||
resendText = resendText + it.text + System.lineSeparator()
|
||||
binding.messageInputText.setText(resendText)
|
||||
}
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
9
app/src/main/res/drawable/ic_retry_24.xml
Normal file
9
app/src/main/res/drawable/ic_retry_24.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="20"
|
||||
android:viewportWidth="20"
|
||||
android:width="24dp">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M14.189,10.329l-1.4,-1.385 -1.061,1.061 3.9,3.884 3.865,-3.866 -1.06,-1.06 -1.055,1.055L16.5,11.344V10a7.75,7.75 0,1 0,-2.27 5.48l-1.061,-1.061A6.249,6.249 0,1 1,15 10v1.671Z"/>
|
||||
</vector>
|
||||
|
|
@ -1,6 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/resendButton"
|
||||
android:icon="@drawable/ic_retry_24"
|
||||
android:title="@string/resend"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/deleteButton"
|
||||
android:icon="@drawable/ic_twotone_delete_24"
|
||||
|
|
|
|||
|
|
@ -137,4 +137,5 @@
|
|||
<string name="allow_will_show">Pozwól</string>
|
||||
<string name="preferences_language">Język (wymagany restart)</string>
|
||||
<string name="preferences_system_default">Domyślny systemu</string>
|
||||
<string name="resend">Ponów</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -140,4 +140,5 @@
|
|||
<string name="download_failed">Unable to download style pack</string>
|
||||
<string name="preferences_language">Language (restart needed)</string>
|
||||
<string name="preferences_system_default">System default</string>
|
||||
<string name="resend">Resend</string>
|
||||
</resources>
|
||||
Loading…
Add table
Add a link
Reference in a new issue