From 03a0b53eeee3bd08af2157f12a7b2d6c945da866 Mon Sep 17 00:00:00 2001 From: wch423 Date: Tue, 17 Feb 2026 16:34:33 +0100 Subject: [PATCH] Update function name --- .../securesms/components/audioplay/AudioView.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/components/audioplay/AudioView.java b/src/main/java/org/thoughtcrime/securesms/components/audioplay/AudioView.java index ca2a52219..9258b6d30 100644 --- a/src/main/java/org/thoughtcrime/securesms/components/audioplay/AudioView.java +++ b/src/main/java/org/thoughtcrime/securesms/components/audioplay/AudioView.java @@ -68,7 +68,7 @@ public class AudioView extends FrameLayout { this.title = findViewById(R.id.title); this.mask = findViewById(R.id.interception_mask); - updateTimestamps(); + updateTimestampsAndSeekBar(); // Load drawables once this.playToPauseDrawable = AnimatedVectorDrawableCompat.create( @@ -134,7 +134,7 @@ public class AudioView extends FrameLayout { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { AudioView.this.progress = progress; - updateTimestamps(); + updateTimestampsAndSeekBar(); } } @@ -200,7 +200,7 @@ public class AudioView extends FrameLayout { Map durations = viewModel.getDurations().getValue(); if (durations != null && durations.containsKey(msgId)) { this.duration = Math.toIntExact(durations.get(msgId)); - updateTimestamps(); + updateTimestampsAndSeekBar(); } else { viewModel.ensureDurationLoaded(getContext(), msgId, audioUri); } @@ -268,7 +268,7 @@ public class AudioView extends FrameLayout { if (duration > 0) { this.progress = position; this.duration = duration; - updateTimestamps(); + updateTimestampsAndSeekBar(); } } @@ -316,7 +316,7 @@ public class AudioView extends FrameLayout { // Also clear progress to avoid confusion this.progress = 0; - updateTimestamps(); + updateTimestampsAndSeekBar(); } } @@ -352,12 +352,12 @@ public class AudioView extends FrameLayout { Long duration = durations.get(msgId); if (duration != null && seekBar.getMax() <= 100) { this.duration = Math.toIntExact(duration); - updateTimestamps(); + updateTimestampsAndSeekBar(); seekBar.setMax(this.duration); } } - private void updateTimestamps() { + private void updateTimestampsAndSeekBar() { String progressText = DateUtils.getFormatedDuration(progress); String durationText = DateUtils.getFormatedDuration(duration); timestamp.setText(String.format("%s / %s", progressText, durationText));