From cf6c7f58ce644a86387fc64a0f70f70b18169f72 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 26 Jan 2023 16:03:08 +0100 Subject: [PATCH] shortening some code with imports --- .../contacts/pro/helpers/VcfExporter.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt index aa80a06c..6b8415c7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt @@ -1,7 +1,7 @@ package com.simplemobiletools.contacts.pro.helpers import android.net.Uri -import android.provider.ContactsContract.CommonDataKinds +import android.provider.ContactsContract.CommonDataKinds.Email import android.provider.ContactsContract.CommonDataKinds.Event import android.provider.ContactsContract.CommonDataKinds.Im import android.provider.ContactsContract.CommonDataKinds.Phone @@ -188,10 +188,10 @@ class VcfExporter { } private fun getEmailTypeLabel(type: Int, label: String) = when (type) { - CommonDataKinds.Email.TYPE_HOME -> HOME - CommonDataKinds.Email.TYPE_WORK -> WORK - CommonDataKinds.Email.TYPE_MOBILE -> MOBILE - CommonDataKinds.Email.TYPE_OTHER -> OTHER + Email.TYPE_HOME -> HOME + Email.TYPE_WORK -> WORK + Email.TYPE_MOBILE -> MOBILE + Email.TYPE_OTHER -> OTHER else -> label }