Skip to content

Commit 293522d

Browse files
committed
Use sendEmailIntent from commons
1 parent 2022826 commit 293522d

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363
}
6464

6565
dependencies {
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'

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ContactActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import com.simplemobiletools.commons.extensions.*
2727
import com.simplemobiletools.commons.helpers.letterBackgroundColors
2828
import com.simplemobiletools.commons.models.RadioItem
2929
import com.simplemobiletools.contacts.pro.R
30-
import com.simplemobiletools.contacts.pro.extensions.sendEmailIntent
3130
import com.simplemobiletools.contacts.pro.extensions.shareContacts
3231
import com.simplemobiletools.contacts.pro.helpers.ContactsHelper
3332
import com.simplemobiletools.contacts.pro.models.Contact

app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/Context.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import android.os.Looper
1111
import android.provider.ContactsContract
1212
import androidx.core.content.FileProvider
1313
import 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
1517
import com.simplemobiletools.contacts.pro.BuildConfig
1618
import com.simplemobiletools.contacts.pro.R
1719
import 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-
5045
fun Context.sendAddressIntent(address: String) {
5146
val location = Uri.encode(address)
5247
val uri = Uri.parse("geo:0,0?q=$location")

0 commit comments

Comments
 (0)