mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-10 15:33:17 +01:00
Merge branch 'master' of github.com:SimpleMobileTools/Simple-SMS-Messenger
This commit is contained in:
commit
ccd298444b
@ -56,7 +56,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:f1ba19dcc0'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:4222d24832'
|
||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||
implementation 'com.klinkerapps:android-smsmms:5.2.6'
|
||||
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
|
||||
|
@ -117,7 +117,7 @@ class ThreadAdapter(
|
||||
is ThreadSent -> setupThreadSuccess(itemView, item.delivered)
|
||||
is ThreadError -> setupThreadError(itemView)
|
||||
is ThreadSending -> setupThreadSending(itemView)
|
||||
else -> setupView(itemView, item as Message)
|
||||
else -> setupView(holder, itemView, item as Message)
|
||||
}
|
||||
}
|
||||
bindViewHolder(holder)
|
||||
@ -214,7 +214,7 @@ class ThreadAdapter(
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupView(view: View, message: Message) {
|
||||
private fun setupView(holder: ViewHolder, view: View, message: Message) {
|
||||
view.apply {
|
||||
thread_message_holder.isSelected = selectedKeys.contains(message.hashCode())
|
||||
thread_message_body.apply {
|
||||
@ -238,6 +238,15 @@ class ThreadAdapter(
|
||||
thread_message_body.setLinkTextColor(contrastColor)
|
||||
}
|
||||
|
||||
thread_message_body.setOnLongClickListener {
|
||||
holder.viewLongClicked()
|
||||
true
|
||||
}
|
||||
|
||||
thread_message_body.setOnClickListener {
|
||||
holder.viewClicked(message)
|
||||
}
|
||||
|
||||
thread_mesage_attachments_holder.removeAllViews()
|
||||
if (message.attachment?.attachments?.isNotEmpty() == true) {
|
||||
for (attachment in message.attachment.attachments) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/cab_copy_to_clipboard"
|
||||
android:icon="@drawable/ic_copy"
|
||||
android:icon="@drawable/ic_copy_vector"
|
||||
android:title="@string/copy_to_clipboard"
|
||||
app:showAsAction="always" />
|
||||
<item
|
||||
|
Loading…
Reference in New Issue
Block a user