File tree Expand file tree Collapse file tree 5 files changed +8
-21
lines changed
src/main/kotlin/com/simplemobiletools/contacts/pro Expand file tree Collapse file tree 5 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ android {
5757}
5858
5959dependencies {
60- implementation ' com.simplemobiletools:commons:5.32.5 '
60+ implementation ' com.simplemobiletools:commons:5.32.17 '
6161 implementation ' joda-time:joda-time:2.10.1'
6262 implementation ' com.googlecode.ez-vcard:ez-vcard:0.10.5'
6363 implementation ' com.github.tibbi:IndicatorFastScroll:08f512858a'
6464 implementation ' androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
6565
66- kapt " androidx.room:room-compiler:2.2.5 "
67- implementation " androidx.room:room-runtime:2.2.5 "
68- annotationProcessor " androidx.room:room-compiler:2.2.5 "
66+ kapt " androidx.room:room-compiler:2.2.6 "
67+ implementation " androidx.room:room-runtime:2.2.6 "
68+ annotationProcessor " androidx.room:room-compiler:2.2.6 "
6969}
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import com.simplemobiletools.commons.helpers.letterBackgroundColors
2424import com.simplemobiletools.commons.models.RadioItem
2525import com.simplemobiletools.contacts.pro.R
2626import com.simplemobiletools.contacts.pro.extensions.sendEmailIntent
27- import com.simplemobiletools.contacts.pro.extensions.sendSMSIntent
2827import com.simplemobiletools.contacts.pro.extensions.shareContacts
2928import com.simplemobiletools.contacts.pro.helpers.ContactsHelper
3029import com.simplemobiletools.contacts.pro.models.Contact
@@ -92,15 +91,15 @@ abstract class ContactActivity : SimpleActivity() {
9291 fun trySendSMS () {
9392 val numbers = contact!! .phoneNumbers
9493 if (numbers.size == 1 ) {
95- sendSMSIntent (numbers.first().value)
94+ launchSendSMSIntent (numbers.first().value)
9695 } else if (numbers.size > 1 ) {
9796 val items = ArrayList <RadioItem >()
9897 numbers.forEachIndexed { index, phoneNumber ->
9998 items.add(RadioItem (index, phoneNumber.value, phoneNumber.value))
10099 }
101100
102101 RadioGroupDialog (this , items) {
103- sendSMSIntent (it as String )
102+ launchSendSMSIntent (it as String )
104103 }
105104 }
106105 }
Original file line number Diff line number Diff line change @@ -66,17 +66,6 @@ fun Context.sendEmailIntent(recipient: String) {
6666 }
6767}
6868
69- fun Context.sendSMSIntent (recipient : String ) {
70- Intent (Intent .ACTION_SENDTO ).apply {
71- data = Uri .fromParts(" smsto" , recipient, null )
72- if (resolveActivity(packageManager) != null ) {
73- startActivity(this )
74- } else {
75- toast(R .string.no_app_found)
76- }
77- }
78- }
79-
8069fun Context.sendAddressIntent (address : String ) {
8170 val location = Uri .encode(address)
8271 val uri = Uri .parse(" geo:0,0?q=$location " )
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import android.graphics.BitmapFactory
66import android.net.Uri
77import android.provider.ContactsContract.CommonDataKinds.Event
88import android.provider.MediaStore
9- import com.simplemobiletools.commons.extensions.getChoppedList
109import com.simplemobiletools.commons.models.SimpleContact
1110import com.simplemobiletools.contacts.pro.extensions.contactsDB
1211import com.simplemobiletools.contacts.pro.extensions.getByteArray
@@ -56,7 +55,7 @@ class LocalContactsHelper(val context: Context) {
5655 }
5756
5857 fun deleteContactIds (ids : MutableList <Long >) {
59- ids.getChoppedList( ).forEach {
58+ ids.chunked( 30 ).forEach {
6059 context.contactsDB.deleteContactIds(it)
6160 }
6261 }
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
33buildscript {
4- ext. kotlin_version = ' 1.4.20 '
4+ ext. kotlin_version = ' 1.4.21 '
55
66 repositories {
77 google()
You can’t perform that action at this time.
0 commit comments