mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
add a new email/number field at pressing Plus
This commit is contained in:
@ -1,13 +1,3 @@
|
||||
package com.simplemobiletools.contacts.models
|
||||
|
||||
import android.provider.ContactsContract
|
||||
import com.simplemobiletools.contacts.R
|
||||
|
||||
data class Email(var value: String, var type: Int) {
|
||||
fun getTextId() = when (type) {
|
||||
ContactsContract.CommonDataKinds.Email.TYPE_HOME -> R.string.home
|
||||
ContactsContract.CommonDataKinds.Email.TYPE_WORK -> R.string.work
|
||||
ContactsContract.CommonDataKinds.Email.TYPE_MOBILE -> R.string.mobile
|
||||
else -> R.string.other
|
||||
}
|
||||
}
|
||||
data class Email(var value: String, var type: Int)
|
||||
|
Reference in New Issue
Block a user