mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Rename method renderPlayingState to renderRecordingState
This commit is contained in:
parent
6091ec4ce3
commit
8fe3b5e750
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ abstract class MessageVoiceBroadcastRecordingItem : AbsMessageVoiceBroadcastItem
|
|||
|
||||
private fun renderRecordingState(holder: Holder, state: VoiceBroadcastRecorder.State) {
|
||||
when (state) {
|
||||
VoiceBroadcastRecorder.State.Recording -> renderPlayingState(holder)
|
||||
VoiceBroadcastRecorder.State.Recording -> renderRecordingState(holder)
|
||||
VoiceBroadcastRecorder.State.Paused -> renderPausedState(holder)
|
||||
VoiceBroadcastRecorder.State.Idle -> renderStoppedState(holder)
|
||||
}
|
||||
|
@ -66,14 +66,14 @@ abstract class MessageVoiceBroadcastRecordingItem : AbsMessageVoiceBroadcastItem
|
|||
private fun renderVoiceBroadcastState(holder: Holder) {
|
||||
when (voiceBroadcastState) {
|
||||
VoiceBroadcastState.STARTED,
|
||||
VoiceBroadcastState.RESUMED -> renderPlayingState(holder)
|
||||
VoiceBroadcastState.RESUMED -> renderRecordingState(holder)
|
||||
VoiceBroadcastState.PAUSED -> renderPausedState(holder)
|
||||
VoiceBroadcastState.STOPPED,
|
||||
null -> renderStoppedState(holder)
|
||||
}
|
||||
}
|
||||
|
||||
private fun renderPlayingState(holder: Holder) = with(holder) {
|
||||
private fun renderRecordingState(holder: Holder) = with(holder) {
|
||||
stopRecordButton.isEnabled = true
|
||||
recordButton.isEnabled = true
|
||||
|
||||
|
|
Loading…
Reference in a new issue