diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index 70e38703818..22a88a84299 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -899,7 +899,7 @@ class ChatActivity : } } else { Log.d(TAG, "Downloaded to cache") - downloadFileToCache(message,true ) { + downloadFileToCache(message, true) { setUpWaveform(message) } } @@ -4141,13 +4141,13 @@ class ChatActivity : if (file.exists()) { share(message) } else { - downloadFileToCache(message, false ) { + downloadFileToCache(message, false) { share(message) } } } - private fun saveImage(message: ChatMessage){ + private fun saveImage(message: ChatMessage) { if (permissionUtil.isFilesPermissionGranted()) { saveImageToStorage(message) } else { @@ -4177,7 +4177,7 @@ class ChatActivity : if (file.exists()) { showSaveToStorageWarning(message) } else { - downloadFileToCache(message ,false) { + downloadFileToCache(message, false) { showSaveToStorageWarning(message) } } diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt index 3258b64ee6a..1cd258656f3 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt @@ -170,8 +170,6 @@ class MessageActionsDialog( dialogMessageActionsBinding.emojiMore.installForceSingleEmoji() } - - /* This method is a hacky workaround to avoid bug #1914 As the bug happens only for the very first time when the popup is opened, @@ -355,8 +353,8 @@ class MessageActionsDialog( dialogMessageActionsBinding.menuOpenInNcApp.visibility = getVisibility(visible) } - private fun initMenuItemSave (visible: Boolean) { - if (visible){ + private fun initMenuItemSave(visible: Boolean) { + if (visible) { dialogMessageActionsBinding.menuSaveMessage.setOnClickListener { chatActivity.checkIfSaveable(message) dismiss()