diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/MainActivity.kt index 398c40c9..5cb95884 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/MainActivity.kt @@ -185,7 +185,7 @@ class MainActivity : SimpleActivity() { private fun refreshMenuItems() { binding.mainMenu.getToolbar().menu.apply { - findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations) + findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(com.simplemobiletools.commons.R.bool.hide_google_relations) findItem(R.id.show_recycle_bin).isVisible = config.useRecycleBin } } @@ -583,7 +583,7 @@ class MainActivity : SimpleActivity() { FAQItem(com.simplemobiletools.commons.R.string.faq_9_title_commons, com.simplemobiletools.commons.R.string.faq_9_text_commons) ) - if (!resources.getBoolean(R.bool.hide_google_relations)) { + if (!resources.getBoolean(com.simplemobiletools.commons.R.bool.hide_google_relations)) { faqItems.add(FAQItem(com.simplemobiletools.commons.R.string.faq_2_title_commons, com.simplemobiletools.commons.R.string.faq_2_text_commons)) faqItems.add(FAQItem(com.simplemobiletools.commons.R.string.faq_6_title_commons, com.simplemobiletools.commons.R.string.faq_6_text_commons)) } diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/AttachmentsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/AttachmentsAdapter.kt index 04521a80..5d6ed423 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/AttachmentsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/AttachmentsAdapter.kt @@ -177,13 +177,13 @@ class AttachmentsAdapter( .override(size, size) .apply(options) .listener(object : RequestListener { - override fun onLoadFailed(e: GlideException?, model: Any?, target: Target?, isFirstResource: Boolean): Boolean { + override fun onLoadFailed(e: GlideException?, model: Any?, target: Target, isFirstResource: Boolean): Boolean { removeAttachment(attachment) activity.toast(com.simplemobiletools.commons.R.string.unknown_error_occurred) return false } - override fun onResourceReady(dr: Drawable?, a: Any?, t: Target?, d: DataSource?, i: Boolean): Boolean { + override fun onResourceReady(dr: Drawable, a: Any, t: Target, d: DataSource, i: Boolean): Boolean { binding.thumbnail.beVisible() binding.playIcon.beVisibleIf(attachment.mimetype.isVideoMimeType()) binding.compressionProgress.beGone() diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt index a2b0f769..0a42c0e1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/adapters/ThreadAdapter.kt @@ -418,13 +418,13 @@ class ThreadAdapter( .load(uri) .apply(options) .listener(object : RequestListener { - override fun onLoadFailed(e: GlideException?, model: Any?, target: Target?, isFirstResource: Boolean): Boolean { + override fun onLoadFailed(e: GlideException?, model: Any?, target: Target, isFirstResource: Boolean): Boolean { threadMessagePlayOutline.beGone() threadMessageAttachmentsHolder.removeView(imageView.root) return false } - override fun onResourceReady(dr: Drawable?, a: Any?, t: Target?, d: DataSource?, i: Boolean) = false + override fun onResourceReady(dr: Drawable, a: Any, t: Target, d: DataSource, i: Boolean) = false }) // limit attachment sizes to avoid causing OOM diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index adbb9309..b369935a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,7 +13,7 @@ eventbus = "3.3.1" #Room room = "2.6.0-alpha03" #Simple Mobile Tools -simple-commons = "adb7dea7ee" +simple-commons = "e1603ee2d6" android-smsmms = "c3e678befd" indicator-fast-scroll = "4524cd0b61" #Gradle