mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-12 23:34:31 +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)
|
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, "Stored current audio message ID: " + currentlyPlayedVoiceMessage!!.getId())
|
||||||
Log.d(
|
Log.d(
|
||||||
RESUME_AUDIO_TAG, "Audio Position: " + currentlyPlayedVoiceMessage!!.voiceMessagePlayedSeconds
|
RESUME_AUDIO_TAG,
|
||||||
|
"Audio Position: " + currentlyPlayedVoiceMessage!!.voiceMessagePlayedSeconds
|
||||||
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
|
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -2408,8 +2409,8 @@ class ChatActivity :
|
|||||||
|
|
||||||
message.isDownloadingVoiceMessage = false
|
message.isDownloadingVoiceMessage = false
|
||||||
message.isPlayingVoiceMessage = doPlay
|
message.isPlayingVoiceMessage = doPlay
|
||||||
//message.voiceMessagePlayedSeconds = lastRecordMediaPosition / VOICE_MESSAGE_SEEKBAR_BASE
|
// message.voiceMessagePlayedSeconds = lastRecordMediaPosition / VOICE_MESSAGE_SEEKBAR_BASE
|
||||||
//message.voiceMessageSeekbarProgress = lastRecordMediaPosition
|
// message.voiceMessageSeekbarProgress = lastRecordMediaPosition
|
||||||
// the commented instructions objective was to update audio seekbarprogress
|
// the commented instructions objective was to update audio seekbarprogress
|
||||||
// in the case in which audio status is paused when the position is resumed
|
// in the case in which audio status is paused when the position is resumed
|
||||||
adapter?.update(message)
|
adapter?.update(message)
|
||||||
@ -2474,7 +2475,7 @@ class ChatActivity :
|
|||||||
adapter?.update(message)
|
adapter?.update(message)
|
||||||
|
|
||||||
currentlyPlayedVoiceMessage = null
|
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)
|
mediaPlayerHandler.removeCallbacksAndMessages(null)
|
||||||
|
|
||||||
@ -3799,7 +3800,7 @@ class ChatActivity :
|
|||||||
adapter?.addToEnd(chatMessageList, false)
|
adapter?.addToEnd(chatMessageList, false)
|
||||||
}
|
}
|
||||||
scrollToRequestedMessageIfNeeded()
|
scrollToRequestedMessageIfNeeded()
|
||||||
//FENOM: add here audio resume policy
|
// FENOM: add here audio resume policy
|
||||||
resumeAudioPlaybackIfNeeded()
|
resumeAudioPlaybackIfNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user