mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	create a copy of contact items at updating them
This commit is contained in:
		| @@ -45,7 +45,7 @@ ext { | ||||
| } | ||||
|  | ||||
| dependencies { | ||||
|     implementation 'com.simplemobiletools:commons:3.19.4' | ||||
|     implementation 'com.simplemobiletools:commons:3.19.21' | ||||
|     implementation 'joda-time:joda-time:2.9.9' | ||||
|     implementation 'com.facebook.stetho:stetho:1.5.0' | ||||
|  | ||||
|   | ||||
| @@ -117,7 +117,7 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont | ||||
|  | ||||
|     fun updateItems(newItems: ArrayList<Contact>, highlightText: String = "") { | ||||
|         if (newItems.hashCode() != contactItems.hashCode()) { | ||||
|             contactItems = newItems | ||||
|             contactItems = newItems.clone() as ArrayList<Contact> | ||||
|             textToHighlight = highlightText | ||||
|             notifyDataSetChanged() | ||||
|             finishActMode() | ||||
|   | ||||
| @@ -9,7 +9,7 @@ buildscript { | ||||
|     } | ||||
|  | ||||
|     dependencies { | ||||
|         classpath 'com.android.tools.build:gradle:3.1.1' | ||||
|         classpath 'com.android.tools.build:gradle:3.1.2' | ||||
|         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||||
|  | ||||
|         // NOTE: Do not place your application dependencies here; they belong | ||||
|   | ||||
		Reference in New Issue
	
	Block a user