From fd055152df1a19ccbaf7d09daa3c1cbe211e6d38 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 2 Mar 2018 12:09:52 +0100 Subject: [PATCH] updating commons and kotlin --- app/build.gradle | 2 +- .../simplemobiletools/contacts/dialogs/AddFavoritesDialog.kt | 3 +-- build.gradle | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2a55a51f..9d28db7a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,7 +45,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.14.1' + implementation 'com.simplemobiletools:commons:3.14.4' implementation 'joda-time:joda-time:2.9.9' implementation 'com.facebook.stetho:stetho:1.5.0' implementation 'com.google.code.gson:gson:2.8.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/AddFavoritesDialog.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/AddFavoritesDialog.kt index 4e0c1a68..9463beee 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/AddFavoritesDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/AddFavoritesDialog.kt @@ -12,7 +12,6 @@ import com.simplemobiletools.contacts.models.Contact import kotlinx.android.synthetic.main.layout_select_contact.view.* class AddFavoritesDialog(val activity: SimpleActivity, private val callback: () -> Unit) { - private var dialog: AlertDialog? = null private var view = activity.layoutInflater.inflate(R.layout.layout_select_contact, null) private val config = activity.config private var allContacts = ArrayList() @@ -42,7 +41,7 @@ class AddFavoritesDialog(val activity: SimpleActivity, private val callback: () } } - dialog = AlertDialog.Builder(activity) + AlertDialog.Builder(activity) .setPositiveButton(R.string.ok, { dialog, which -> dialogConfirmed() }) .setNegativeButton(R.string.cancel, null) .create().apply { diff --git a/build.gradle b/build.gradle index a3b736f3..73d77ca8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.2.21' + ext.kotlin_version = '1.2.30' repositories { google()