mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 11:51:10 +01:00
Fix seeking voice notes that do not have waveforms.
This commit is contained in:
@@ -1377,13 +1377,13 @@ public class ConversationFragment extends LoggingFragment {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onVoiceNotePlay(@NonNull Uri uri, long messageId, long position) {
|
||||
voiceNoteMediaController.startConsecutivePlayback(uri, messageId, position);
|
||||
public void onVoiceNotePlay(@NonNull Uri uri, long messageId, double progress) {
|
||||
voiceNoteMediaController.startConsecutivePlayback(uri, messageId, progress);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onVoiceNoteSeekTo(@NonNull Uri uri, long position) {
|
||||
voiceNoteMediaController.seekToPosition(uri, position);
|
||||
public void onVoiceNoteSeekTo(@NonNull Uri uri, double progress) {
|
||||
voiceNoteMediaController.seekToPosition(uri, progress);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1548,10 +1548,10 @@ public class ConversationItem extends LinearLayout implements BindableConversati
|
||||
private final class AudioViewCallbacks implements AudioView.Callbacks {
|
||||
|
||||
@Override
|
||||
public void onPlay(@NonNull Uri audioUri, long position) {
|
||||
public void onPlay(@NonNull Uri audioUri, double progress) {
|
||||
if (eventListener == null) return;
|
||||
|
||||
eventListener.onVoiceNotePlay(audioUri, messageRecord.getId(), position);
|
||||
eventListener.onVoiceNotePlay(audioUri, messageRecord.getId(), progress);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1562,10 +1562,10 @@ public class ConversationItem extends LinearLayout implements BindableConversati
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSeekTo(@NonNull Uri audioUri, long position) {
|
||||
public void onSeekTo(@NonNull Uri audioUri, double progress) {
|
||||
if (eventListener == null) return;
|
||||
|
||||
eventListener.onVoiceNoteSeekTo(audioUri, position);
|
||||
eventListener.onVoiceNoteSeekTo(audioUri, progress);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user