From 16b81e6254b22d8558a038d017b409bdb2559604 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 27 Aug 2021 19:35:42 +0200 Subject: [PATCH] updating commons and gradle --- app/build.gradle | 2 +- .../contacts/pro/fragments/MyViewPagerFragment.kt | 5 +++-- build.gradle | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0816853d..59f155ea 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -56,7 +56,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:203ed6018e' + implementation 'com.github.SimpleMobileTools:Simple-Commons:649211e294' implementation 'joda-time:joda-time:2.10.3' implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a' diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt index 30f1010a..b6f0294c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt @@ -107,12 +107,13 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) fun refreshContacts(contacts: ArrayList) { if ((config.showTabs and TAB_CONTACTS == 0 && this is ContactsFragment && activity !is InsertOrEditContactActivity) || (config.showTabs and TAB_FAVORITES == 0 && this is FavoritesFragment) || - (config.showTabs and TAB_GROUPS == 0 && this is GroupsFragment)) { + (config.showTabs and TAB_GROUPS == 0 && this is GroupsFragment) + ) { return } if (config.lastUsedContactSource.isEmpty()) { - val grouped = contacts.asSequence().groupBy { it.source }.maxWith(compareBy { it.value.size }) + val grouped = contacts.asSequence().groupBy { it.source }.maxWithOrNull(compareBy { it.value.size }) config.lastUsedContactSource = grouped?.key ?: "" } diff --git a/build.gradle b/build.gradle index d483b72a..5166e667 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.4.32' + ext.kotlin_version = '1.5.30' repositories { google()