diff --git a/app/src/main/java/com/nextcloud/talk/polls/adapters/PollCreateOptionViewHolder.kt b/app/src/main/java/com/nextcloud/talk/polls/adapters/PollCreateOptionViewHolder.kt index 26a97801e..6280b6a1e 100644 --- a/app/src/main/java/com/nextcloud/talk/polls/adapters/PollCreateOptionViewHolder.kt +++ b/app/src/main/java/com/nextcloud/talk/polls/adapters/PollCreateOptionViewHolder.kt @@ -75,20 +75,19 @@ class PollCreateOptionViewHolder( private fun getTextWatcher( pollCreateOptionItem: PollCreateOptionItem, itemsListener: PollCreateOptionsItemListener - ) = - object : TextWatcher { - override fun afterTextChanged(s: Editable) { - // unused atm - } - - override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) { - // unused atm - } - - override fun onTextChanged(option: CharSequence, start: Int, before: Int, count: Int) { - pollCreateOptionItem.pollOption = option.toString() - - itemsListener.onOptionsItemTextChanged(pollCreateOptionItem) - } + ) = object : TextWatcher { + override fun afterTextChanged(s: Editable) { + // unused atm } + + override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) { + // unused atm + } + + override fun onTextChanged(option: CharSequence, start: Int, before: Int, count: Int) { + pollCreateOptionItem.pollOption = option.toString() + + itemsListener.onOptionsItemTextChanged(pollCreateOptionItem) + } + } } diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/FileAttachmentPreviewFragment.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/FileAttachmentPreviewFragment.kt index e4f004b95..01ce6dd79 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/FileAttachmentPreviewFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/FileAttachmentPreviewFragment.kt @@ -93,8 +93,7 @@ class FileAttachmentPreviewFragment( filenames: String, filesToUpload: MutableList, functionToCall: (files: MutableList, caption: String) -> Unit - ) = - FileAttachmentPreviewFragment(filenames, filesToUpload, functionToCall) + ) = FileAttachmentPreviewFragment(filenames, filesToUpload, functionToCall) val TAG: String = FilterConversationFragment::class.java.simpleName } } diff --git a/app/src/main/java/com/nextcloud/talk/utils/ssl/SSLSocketFactoryCompat.kt b/app/src/main/java/com/nextcloud/talk/utils/ssl/SSLSocketFactoryCompat.kt index 659c31ffd..48f37449f 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/ssl/SSLSocketFactoryCompat.kt +++ b/app/src/main/java/com/nextcloud/talk/utils/ssl/SSLSocketFactoryCompat.kt @@ -55,11 +55,9 @@ class SSLSocketFactoryCompat( } } - override fun getDefaultCipherSuites(): Array? = - cipherSuites ?: delegate.defaultCipherSuites + override fun getDefaultCipherSuites(): Array? = cipherSuites ?: delegate.defaultCipherSuites - override fun getSupportedCipherSuites(): Array? = - cipherSuites ?: delegate.supportedCipherSuites + override fun getSupportedCipherSuites(): Array? = cipherSuites ?: delegate.supportedCipherSuites override fun createSocket(s: Socket, host: String, port: Int, autoClose: Boolean): Socket { val ssl = delegate.createSocket(s, host, port, autoClose)