do not show an error message at loading contact image at the Conversation

This commit is contained in:
tibbi 2020-05-20 16:11:36 +02:00
parent 3569bce668
commit 94086547a5
2 changed files with 1 additions and 3 deletions

View File

@ -128,9 +128,9 @@ class MainActivity : SimpleActivity() {
handlePermission(PERMISSION_SEND_SMS) { handlePermission(PERMISSION_SEND_SMS) {
if (it) { if (it) {
handlePermission(PERMISSION_READ_CONTACTS) { handlePermission(PERMISSION_READ_CONTACTS) {
initMessenger()
bus = EventBus.getDefault() bus = EventBus.getDefault()
bus!!.register(this) bus!!.register(this)
initMessenger()
} }
} else { } else {
finish() finish()
@ -177,7 +177,6 @@ class MainActivity : SimpleActivity() {
} }
} }
no_conversations_placeholder_2.setOnClickListener { no_conversations_placeholder_2.setOnClickListener {
launchNewConversation() launchNewConversation()
} }

View File

@ -468,7 +468,6 @@ class ThreadActivity : SimpleActivity() {
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean { override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
attachmentView.thread_attachment_preview.beGone() attachmentView.thread_attachment_preview.beGone()
attachmentView.thread_remove_attachment.beGone() attachmentView.thread_remove_attachment.beGone()
showErrorToast(e?.localizedMessage ?: "")
return false return false
} }