mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
Fix kotlin fomatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
96ba967b03
commit
4b0daa6978
@ -586,7 +586,8 @@ class ChatActivity :
|
||||
outState.putBoolean(CURRENT_AUDIO_WAS_PLAYING_KEY, currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage)
|
||||
Log.d(RESUME_AUDIO_TAG, "Stored current audio message ID: " + currentlyPlayedVoiceMessage!!.getId())
|
||||
Log.d(
|
||||
RESUME_AUDIO_TAG, "Audio Position: " + currentlyPlayedVoiceMessage!!.voiceMessagePlayedSeconds
|
||||
RESUME_AUDIO_TAG,
|
||||
"Audio Position: " + currentlyPlayedVoiceMessage!!.voiceMessagePlayedSeconds
|
||||
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
|
||||
)
|
||||
}
|
||||
@ -2408,8 +2409,8 @@ class ChatActivity :
|
||||
|
||||
message.isDownloadingVoiceMessage = false
|
||||
message.isPlayingVoiceMessage = doPlay
|
||||
//message.voiceMessagePlayedSeconds = lastRecordMediaPosition / VOICE_MESSAGE_SEEKBAR_BASE
|
||||
//message.voiceMessageSeekbarProgress = lastRecordMediaPosition
|
||||
// message.voiceMessagePlayedSeconds = lastRecordMediaPosition / VOICE_MESSAGE_SEEKBAR_BASE
|
||||
// message.voiceMessageSeekbarProgress = lastRecordMediaPosition
|
||||
// the commented instructions objective was to update audio seekbarprogress
|
||||
// in the case in which audio status is paused when the position is resumed
|
||||
adapter?.update(message)
|
||||
@ -2474,7 +2475,7 @@ class ChatActivity :
|
||||
adapter?.update(message)
|
||||
|
||||
currentlyPlayedVoiceMessage = null
|
||||
lastRecordMediaPosition = 0 //this ensures that if audio track is changed, then it is played from the beginning
|
||||
lastRecordMediaPosition = 0 // this ensures that if audio track is changed, then it is played from the beginning
|
||||
|
||||
mediaPlayerHandler.removeCallbacksAndMessages(null)
|
||||
|
||||
@ -3799,7 +3800,7 @@ class ChatActivity :
|
||||
adapter?.addToEnd(chatMessageList, false)
|
||||
}
|
||||
scrollToRequestedMessageIfNeeded()
|
||||
//FENOM: add here audio resume policy
|
||||
// FENOM: add here audio resume policy
|
||||
resumeAudioPlaybackIfNeeded()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user