kopia lustrzana https://github.com/ryukoposting/Signal-Android
Make play/pause button long-clickable.
rodzic
0e8550748d
commit
a6dfee16e9
|
@ -119,6 +119,7 @@ public final class AudioView extends FrameLayout {
|
||||||
|
|
||||||
lottieDirection = REVERSE;
|
lottieDirection = REVERSE;
|
||||||
this.playPauseButton.setOnClickListener(new PlayPauseClickedListener());
|
this.playPauseButton.setOnClickListener(new PlayPauseClickedListener());
|
||||||
|
this.playPauseButton.setOnLongClickListener(v -> performLongClick());
|
||||||
this.seekBar.setOnSeekBarChangeListener(new SeekBarModifiedListener());
|
this.seekBar.setOnSeekBarChangeListener(new SeekBarModifiedListener());
|
||||||
|
|
||||||
setTint(typedArray.getColor(R.styleable.AudioView_foregroundTintColor, Color.WHITE));
|
setTint(typedArray.getColor(R.styleable.AudioView_foregroundTintColor, Color.WHITE));
|
||||||
|
|
|
@ -329,6 +329,10 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
||||||
setMessageSpacing(context, messageRecord, previousMessageRecord, nextMessageRecord, groupThread);
|
setMessageSpacing(context, messageRecord, previousMessageRecord, nextMessageRecord, groupThread);
|
||||||
setReactions(messageRecord);
|
setReactions(messageRecord);
|
||||||
setFooter(messageRecord, nextMessageRecord, locale, groupThread, hasWallpaper);
|
setFooter(messageRecord, nextMessageRecord, locale, groupThread, hasWallpaper);
|
||||||
|
|
||||||
|
if (audioViewStub.resolved()) {
|
||||||
|
audioViewStub.get().setOnLongClickListener(passthroughClickListener);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Ładowanie…
Reference in New Issue