From fe7d5794087f3932b1026414067ff0b7b99c7496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 17 Aug 2023 16:16:24 +0200 Subject: [PATCH] Remove unnecessary type annotations from binding properties --- .../contacts/pro/activities/EditContactActivity.kt | 2 +- .../contacts/pro/activities/GroupContactsActivity.kt | 2 +- .../contacts/pro/activities/InsertOrEditContactActivity.kt | 2 +- .../simplemobiletools/contacts/pro/activities/MainActivity.kt | 2 +- .../contacts/pro/activities/SettingsActivity.kt | 2 +- .../contacts/pro/activities/ViewContactActivity.kt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt index 7a4cc6a2..8d3fd5e2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt @@ -74,7 +74,7 @@ class EditContactActivity : ContactActivity() { private var numberViewToColor: EditText? = null private var emailViewToColor: EditText? = null private var originalContactSource = "" - private val binding: ActivityEditContactBinding by viewBinding(ActivityEditContactBinding::inflate) + private val binding by viewBinding(ActivityEditContactBinding::inflate) enum class PrimaryNumberStatus { UNCHANGED, STARRED, UNSTARRED diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/GroupContactsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/GroupContactsActivity.kt index f84f7011..f660f00e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/GroupContactsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/GroupContactsActivity.kt @@ -27,7 +27,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh private var groupContacts = ArrayList() private var wasInit = false lateinit var group: Group - private val binding: ActivityGroupContactsBinding by viewBinding(ActivityGroupContactsBinding::inflate) + private val binding by viewBinding(ActivityGroupContactsBinding::inflate) protected val INTENT_SELECT_RINGTONE = 600 diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/InsertOrEditContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/InsertOrEditContactActivity.kt index c32a35ac..0fa60868 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/InsertOrEditContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/InsertOrEditContactActivity.kt @@ -33,7 +33,7 @@ class InsertOrEditContactActivity : SimpleActivity(), RefreshContactsListener { private var isSelectContactIntent = false private var specialMimeType: String? = null - private val binding: ActivityInsertEditContactBinding by viewBinding(ActivityInsertEditContactBinding::inflate) + private val binding by viewBinding(ActivityInsertEditContactBinding::inflate) private val contactsFavoritesList = arrayListOf( TAB_CONTACTS, diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt index 7cff2bbf..48209c17 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt @@ -61,7 +61,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { private var storedStartNameWithSurname = false private var storedFontSize = 0 private var storedShowTabs = 0 - private val binding: ActivityMainBinding by viewBinding(ActivityMainBinding::inflate) + private val binding by viewBinding(ActivityMainBinding::inflate) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/SettingsActivity.kt index ae5bae61..b313290c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/SettingsActivity.kt @@ -18,7 +18,7 @@ import kotlin.system.exitProcess class SettingsActivity : SimpleActivity() { - private val binding: ActivitySettingsBinding by viewBinding(ActivitySettingsBinding::inflate) + private val binding by viewBinding(ActivitySettingsBinding::inflate) override fun onCreate(savedInstanceState: Bundle?) { isMaterialActivity = true diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt index fa5793c9..fc0a3092 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt @@ -42,7 +42,7 @@ class ViewContactActivity : ContactActivity() { private var fullContact: Contact? = null // contact with all fields filled from duplicates private var duplicateInitialized = false private val mergeDuplicate: Boolean get() = config.mergeDuplicateContacts - private val binding: ActivityViewContactBinding by viewBinding(ActivityViewContactBinding::inflate) + private val binding by viewBinding(ActivityViewContactBinding::inflate) companion object { private const val COMPARABLE_PHONE_NUMBER_LENGTH = 9