File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
src/main/kotlin/com/simplemobiletools/contacts/pro Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ android {
6363}
6464
6565dependencies {
66- implementation ' com.github.SimpleMobileTools:Simple-Commons:f6ddbdf19b '
66+ implementation ' com.github.SimpleMobileTools:Simple-Commons:141660c8f9 '
6767 implementation ' com.googlecode.ez-vcard:ez-vcard:0.11.3'
6868 implementation ' com.github.tibbi:IndicatorFastScroll:4524cd0b61'
6969 implementation ' androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import com.simplemobiletools.commons.extensions.*
2727import com.simplemobiletools.commons.helpers.letterBackgroundColors
2828import com.simplemobiletools.commons.models.RadioItem
2929import com.simplemobiletools.contacts.pro.R
30- import com.simplemobiletools.contacts.pro.extensions.sendEmailIntent
3130import com.simplemobiletools.contacts.pro.extensions.shareContacts
3231import com.simplemobiletools.contacts.pro.helpers.ContactsHelper
3332import com.simplemobiletools.contacts.pro.models.Contact
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import android.os.Looper
1111import android.provider.ContactsContract
1212import androidx.core.content.FileProvider
1313import com.simplemobiletools.commons.extensions.*
14- import com.simplemobiletools.commons.helpers.*
14+ import com.simplemobiletools.commons.helpers.PERMISSION_READ_CONTACTS
15+ import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_CONTACTS
16+ import com.simplemobiletools.commons.helpers.SimpleContactsHelper
1517import com.simplemobiletools.contacts.pro.BuildConfig
1618import com.simplemobiletools.contacts.pro.R
1719import com.simplemobiletools.contacts.pro.databases.ContactsDatabase
@@ -40,13 +42,6 @@ fun Context.getEmptyContact(): Contact {
4042 )
4143}
4244
43- fun Context.sendEmailIntent (recipient : String ) {
44- Intent (Intent .ACTION_SENDTO ).apply {
45- data = Uri .fromParts(KEY_MAILTO , recipient, null )
46- launchActivityIntent(this )
47- }
48- }
49-
5045fun Context.sendAddressIntent (address : String ) {
5146 val location = Uri .encode(address)
5247 val uri = Uri .parse(" geo:0,0?q=$location " )
You can’t perform that action at this time.
0 commit comments