diff --git a/app/build.gradle b/app/build.gradle index c40a46f9..261d359d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,7 +63,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:57a5db1ef3' + implementation 'com.github.SimpleMobileTools:Simple-Commons:8814cd2d4b' implementation 'org.greenrobot:eventbus:3.3.1' implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61' implementation 'com.github.tibbi:android-smsmms:5657799572' @@ -72,7 +72,7 @@ dependencies { implementation 'com.googlecode.ez-vcard:ez-vcard:0.11.3' implementation 'androidx.lifecycle:lifecycle-process:2.5.1' - kapt "androidx.room:room-compiler:2.5.1" - implementation "androidx.room:room-runtime:2.5.1" - annotationProcessor "androidx.room:room-compiler:2.5.1" + kapt "androidx.room:room-compiler:2.5.2" + implementation "androidx.room:room-runtime:2.5.2" + annotationProcessor "androidx.room:room-compiler:2.5.2" } diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt index 2ddf0ac4..82e2003a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt @@ -10,11 +10,9 @@ import android.graphics.BitmapFactory import android.graphics.drawable.LayerDrawable import android.media.MediaMetadataRetriever import android.net.Uri -import android.os.Build import android.os.Bundle import android.provider.ContactsContract import android.provider.MediaStore -import android.provider.Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM import android.provider.Telephony import android.provider.Telephony.Sms.MESSAGE_TYPE_QUEUED import android.provider.Telephony.Sms.STATUS_NONE @@ -80,7 +78,6 @@ import org.joda.time.DateTime import java.io.File import java.io.InputStream import java.io.OutputStream -import java.security.acl.Permission class ThreadActivity : SimpleActivity() { private val MIN_DATE_TIME_DIFF_SECS = 300 @@ -1171,7 +1168,7 @@ class ThreadActivity : SimpleActivity() { contacts = arrayListOf(contact), showExportingToast = false, ) { - if (it == VcfExporter.ExportResult.EXPORT_OK) { + if (it == ExportResult.EXPORT_OK) { val vCardUri = getMyFileUri(outputFile) runOnUiThread { addAttachment(vCardUri)