From 4b0daa6978affc22e104c1bb3e32cda57e411672 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sat, 16 Mar 2024 15:02:23 +0100 Subject: [PATCH] Fix kotlin fomatting Signed-off-by: Andy Scherzinger --- .../java/com/nextcloud/talk/chat/ChatActivity.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index 148205be7..f43fec947 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -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() } @@ -4479,7 +4480,7 @@ class ChatActivity : val lon = data["longitude"]!! metaData = "{\"type\":\"geo-location\",\"id\":\"geo:$lat,$lon\",\"latitude\":\"$lat\"," + - "\"longitude\":\"$lon\",\"name\":\"$name\"}" + "\"longitude\":\"$lon\",\"name\":\"$name\"}" } when (type) {