mirror of
				https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
				synced 2025-06-05 21:49:22 +02:00 
			
		
		
		
	handle long-press of message bubble
- update commons dependency - fix broken drawable resource reference in cab_thread menu file
This commit is contained in:
		| @@ -56,7 +56,7 @@ android { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     implementation 'com.github.SimpleMobileTools:Simple-Commons:f1ba19dcc0' |     implementation 'com.github.SimpleMobileTools:Simple-Commons:4222d24832' | ||||||
|     implementation 'org.greenrobot:eventbus:3.2.0' |     implementation 'org.greenrobot:eventbus:3.2.0' | ||||||
|     implementation 'com.klinkerapps:android-smsmms:5.2.6' |     implementation 'com.klinkerapps:android-smsmms:5.2.6' | ||||||
|     implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a' |     implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a' | ||||||
|   | |||||||
| @@ -117,7 +117,7 @@ class ThreadAdapter( | |||||||
|                 is ThreadSent -> setupThreadSuccess(itemView, item.delivered) |                 is ThreadSent -> setupThreadSuccess(itemView, item.delivered) | ||||||
|                 is ThreadError -> setupThreadError(itemView) |                 is ThreadError -> setupThreadError(itemView) | ||||||
|                 is ThreadSending -> setupThreadSending(itemView) |                 is ThreadSending -> setupThreadSending(itemView) | ||||||
|                 else -> setupView(itemView, item as Message) |                 else -> setupView(holder, itemView, item as Message) | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         bindViewHolder(holder) |         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 { |         view.apply { | ||||||
|             thread_message_holder.isSelected = selectedKeys.contains(message.hashCode()) |             thread_message_holder.isSelected = selectedKeys.contains(message.hashCode()) | ||||||
|             thread_message_body.apply { |             thread_message_body.apply { | ||||||
| @@ -238,6 +238,15 @@ class ThreadAdapter( | |||||||
|                 thread_message_body.setLinkTextColor(contrastColor) |                 thread_message_body.setLinkTextColor(contrastColor) | ||||||
|             } |             } | ||||||
|  |  | ||||||
|  |             thread_message_body.setOnLongClickListener { | ||||||
|  |                 holder.viewLongClicked() | ||||||
|  |                 true | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             thread_message_body.setOnClickListener { | ||||||
|  |                 holder.viewClicked(message) | ||||||
|  |             } | ||||||
|  |  | ||||||
|             thread_mesage_attachments_holder.removeAllViews() |             thread_mesage_attachments_holder.removeAllViews() | ||||||
|             if (message.attachment?.attachments?.isNotEmpty() == true) { |             if (message.attachment?.attachments?.isNotEmpty() == true) { | ||||||
|                 for (attachment in message.attachment.attachments) { |                 for (attachment in message.attachment.attachments) { | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|     xmlns:app="http://schemas.android.com/apk/res-auto"> |     xmlns:app="http://schemas.android.com/apk/res-auto"> | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/cab_copy_to_clipboard" |         android:id="@+id/cab_copy_to_clipboard" | ||||||
|         android:icon="@drawable/ic_copy" |         android:icon="@drawable/ic_copy_vector" | ||||||
|         android:title="@string/copy_to_clipboard" |         android:title="@string/copy_to_clipboard" | ||||||
|         app:showAsAction="always" /> |         app:showAsAction="always" /> | ||||||
|     <item |     <item | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user