mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Lint fixes.
This commit is contained in:
parent
8452f7564c
commit
b1c7cb3219
4 changed files with 3 additions and 5 deletions
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -175,7 +175,7 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
RecordingState.LOCKED -> {
|
RecordingState.LOCKED -> {
|
||||||
views.voiceMessageLockImage.setImageResource(R.drawable.ic_voice_message_locked)
|
views.voiceMessageLockImage.setImageResource(R.drawable.ic_voice_message_locked)
|
||||||
views.voiceMessageLockImage.postDelayed( {
|
views.voiceMessageLockImage.postDelayed({
|
||||||
showRecordingLockedViews()
|
showRecordingLockedViews()
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
|
||||||
} else if (timeDiffToRecordingLimit in 10000..11000) {
|
} else if (timeDiffToRecordingLimit in 10000..11000) {
|
||||||
views.voiceMessageRecordingLayout.post {
|
views.voiceMessageRecordingLayout.post {
|
||||||
views.voiceMessageSendButton.isVisible = false
|
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()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,6 @@ abstract class MessageVoiceItem : AbsMessageItem<MessageVoiceItem.Holder>() {
|
||||||
@EpoxyAttribute
|
@EpoxyAttribute
|
||||||
lateinit var voiceMessagePlaybackTracker: VoiceMessagePlaybackTracker
|
lateinit var voiceMessagePlaybackTracker: VoiceMessagePlaybackTracker
|
||||||
|
|
||||||
|
|
||||||
override fun bind(holder: Holder) {
|
override fun bind(holder: Holder) {
|
||||||
super.bind(holder)
|
super.bind(holder)
|
||||||
renderSendState(holder.voiceLayout, null)
|
renderSendState(holder.voiceLayout, null)
|
||||||
|
|
|
@ -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_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"
|
private const val SETTINGS_DEVELOPER_MODE_FAIL_FAST_PREFERENCE_KEY = "SETTINGS_DEVELOPER_MODE_FAIL_FAST_PREFERENCE_KEY"
|
||||||
|
|
||||||
|
|
||||||
// SETTINGS_LABS_HIDE_TECHNICAL_E2E_ERRORS
|
// 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"
|
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"
|
const val SETTINGS_LABS_UNREAD_NOTIFICATIONS_AS_TAB = "SETTINGS_LABS_UNREAD_NOTIFICATIONS_AS_TAB"
|
||||||
|
|
Loading…
Reference in a new issue