From b1c7cb32192770e898ef95dc3606fd2298a24080 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Wed, 7 Jul 2021 11:37:01 +0300 Subject: [PATCH] Lint fixes. --- .../sdk/internal/crypto/model/rest/AudioWaveformInfo.kt | 2 +- .../home/room/detail/composer/VoiceMessageRecorderView.kt | 4 ++-- .../home/room/detail/timeline/item/MessageVoiceItem.kt | 1 - .../java/im/vector/app/features/settings/VectorPreferences.kt | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/model/rest/AudioWaveformInfo.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/model/rest/AudioWaveformInfo.kt index 2098a34960..bbb723e198 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/model/rest/AudioWaveformInfo.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/model/rest/AudioWaveformInfo.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 New Vector Ltd + * Copyright 2020 The Matrix.org Foundation C.I.C. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/VoiceMessageRecorderView.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/VoiceMessageRecorderView.kt index 92671a34bb..06eaa7bb23 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/VoiceMessageRecorderView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/VoiceMessageRecorderView.kt @@ -175,7 +175,7 @@ class VoiceMessageRecorderView @JvmOverloads constructor( } RecordingState.LOCKED -> { views.voiceMessageLockImage.setImageResource(R.drawable.ic_voice_message_locked) - views.voiceMessageLockImage.postDelayed( { + views.voiceMessageLockImage.postDelayed({ showRecordingLockedViews() }, 500) } @@ -238,7 +238,7 @@ class VoiceMessageRecorderView @JvmOverloads constructor( } else if (timeDiffToRecordingLimit in 10000..11000) { views.voiceMessageRecordingLayout.post { views.voiceMessageSendButton.isVisible = false - context.toast(context.getString(R.string.voice_message_n_seconds_warning_toast, (timeDiffToRecordingLimit/1000).toInt())) + context.toast(context.getString(R.string.voice_message_n_seconds_warning_toast, (timeDiffToRecordingLimit / 1000).toInt())) } } } diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceItem.kt index cfca70840a..9202d7f72a 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageVoiceItem.kt @@ -60,7 +60,6 @@ abstract class MessageVoiceItem : AbsMessageItem() { @EpoxyAttribute lateinit var voiceMessagePlaybackTracker: VoiceMessagePlaybackTracker - override fun bind(holder: Holder) { super.bind(holder) renderSendState(holder.voiceLayout, null) diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt index 3ce7e2a952..8701519d7c 100755 --- a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt @@ -160,7 +160,6 @@ class VectorPreferences @Inject constructor(private val context: Context) { private const val SETTINGS_LABS_ENABLE_SWIPE_TO_REPLY = "SETTINGS_LABS_ENABLE_SWIPE_TO_REPLY" private const val SETTINGS_DEVELOPER_MODE_FAIL_FAST_PREFERENCE_KEY = "SETTINGS_DEVELOPER_MODE_FAIL_FAST_PREFERENCE_KEY" - // SETTINGS_LABS_HIDE_TECHNICAL_E2E_ERRORS private const val SETTINGS_LABS_SHOW_COMPLETE_HISTORY_IN_ENCRYPTED_ROOM = "SETTINGS_LABS_SHOW_COMPLETE_HISTORY_IN_ENCRYPTED_ROOM" const val SETTINGS_LABS_UNREAD_NOTIFICATIONS_AS_TAB = "SETTINGS_LABS_UNREAD_NOTIFICATIONS_AS_TAB"