mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	updating commons to 5.31.8
This commit is contained in:
		| @@ -57,7 +57,7 @@ android { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     implementation 'com.simplemobiletools:commons:5.30.11' |     implementation 'com.simplemobiletools:commons:5.31.8' | ||||||
|     implementation 'joda-time:joda-time:2.10.1' |     implementation 'joda-time:joda-time:2.10.1' | ||||||
|     implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' |     implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' | ||||||
|     implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a' |     implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a' | ||||||
|   | |||||||
| @@ -39,7 +39,6 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont | |||||||
|     private var config = activity.config |     private var config = activity.config | ||||||
|     private var textToHighlight = highlightText |     private var textToHighlight = highlightText | ||||||
|  |  | ||||||
|     var adjustedPrimaryColor = activity.getAdjustedPrimaryColor() |  | ||||||
|     var startNameWithSurname = config.startNameWithSurname |     var startNameWithSurname = config.startNameWithSurname | ||||||
|     var showContactThumbnails = config.showContactThumbnails |     var showContactThumbnails = config.showContactThumbnails | ||||||
|     var showPhoneNumbers = config.showPhoneNumbers |     var showPhoneNumbers = config.showPhoneNumbers | ||||||
|   | |||||||
| @@ -7,7 +7,6 @@ import android.view.ViewGroup | |||||||
| import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter | import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter | ||||||
| import com.simplemobiletools.commons.dialogs.ConfirmationDialog | import com.simplemobiletools.commons.dialogs.ConfirmationDialog | ||||||
| import com.simplemobiletools.commons.extensions.beVisibleIf | import com.simplemobiletools.commons.extensions.beVisibleIf | ||||||
| import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor |  | ||||||
| import com.simplemobiletools.commons.extensions.getTextSize | import com.simplemobiletools.commons.extensions.getTextSize | ||||||
| import com.simplemobiletools.commons.extensions.highlightTextPart | import com.simplemobiletools.commons.extensions.highlightTextPart | ||||||
| import com.simplemobiletools.commons.helpers.SimpleContactsHelper | import com.simplemobiletools.commons.helpers.SimpleContactsHelper | ||||||
| @@ -30,8 +29,6 @@ class GroupsAdapter(activity: SimpleActivity, var groups: ArrayList<Group>, val | |||||||
|                     fastScroller: FastScroller, itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, fastScroller, itemClick) { |                     fastScroller: FastScroller, itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, fastScroller, itemClick) { | ||||||
|  |  | ||||||
|     private var textToHighlight = "" |     private var textToHighlight = "" | ||||||
|  |  | ||||||
|     var adjustedPrimaryColor = activity.getAdjustedPrimaryColor() |  | ||||||
|     var showContactThumbnails = activity.config.showContactThumbnails |     var showContactThumbnails = activity.config.showContactThumbnails | ||||||
|     var fontSize = activity.getTextSize() |     var fontSize = activity.getTextSize() | ||||||
|  |  | ||||||
|   | |||||||
| @@ -92,14 +92,6 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) | |||||||
|         fragment_fastscroller?.updateBubblePrimaryColor() |         fragment_fastscroller?.updateBubblePrimaryColor() | ||||||
|         letter_fastscroller_thumb?.thumbColor = config.primaryColor.getColorStateList() |         letter_fastscroller_thumb?.thumbColor = config.primaryColor.getColorStateList() | ||||||
|         letter_fastscroller_thumb?.textColor = config.primaryColor.getContrastColor() |         letter_fastscroller_thumb?.textColor = config.primaryColor.getContrastColor() | ||||||
|  |  | ||||||
|         (fragment_list.adapter as? ContactsAdapter)?.apply { |  | ||||||
|             adjustedPrimaryColor = context.getAdjustedPrimaryColor() |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         (fragment_list.adapter as? GroupsAdapter)?.apply { |  | ||||||
|             adjustedPrimaryColor = context.getAdjustedPrimaryColor() |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     fun startNameWithSurnameChanged(startNameWithSurname: Boolean) { |     fun startNameWithSurnameChanged(startNameWithSurname: Boolean) { | ||||||
| @@ -298,7 +290,8 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) | |||||||
|                 getProperText(it.getNameToDisplay(), shouldNormalize).contains(text, true) || |                 getProperText(it.getNameToDisplay(), shouldNormalize).contains(text, true) || | ||||||
|                         getProperText(it.nickname, shouldNormalize).contains(text, true) || |                         getProperText(it.nickname, shouldNormalize).contains(text, true) || | ||||||
|                         it.phoneNumbers.any { |                         it.phoneNumbers.any { | ||||||
|                             text.normalizePhoneNumber().isNotEmpty() && (it.normalizedNumber ?: it.value).contains(text.normalizePhoneNumber(), true) |                             text.normalizePhoneNumber().isNotEmpty() && (it.normalizedNumber | ||||||
|  |                                 ?: it.value).contains(text.normalizePhoneNumber(), true) | ||||||
|                         } || |                         } || | ||||||
|                         it.emails.any { it.value.contains(text, true) } || |                         it.emails.any { it.value.contains(text, true) } || | ||||||
|                         it.addresses.any { getProperText(it.value, shouldNormalize).contains(text, true) } || |                         it.addresses.any { getProperText(it.value, shouldNormalize).contains(text, true) } || | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ buildscript { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     dependencies { |     dependencies { | ||||||
|         classpath 'com.android.tools.build:gradle:4.0.1' |         classpath 'com.android.tools.build:gradle:4.0.2' | ||||||
|         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||||||
|  |  | ||||||
|         // NOTE: Do not place your application dependencies here; they belong |         // NOTE: Do not place your application dependencies here; they belong | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user