mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Fix reply icon offset bug
This commit is contained in:
parent
6d452e19ef
commit
f44e655361
@ -184,8 +184,6 @@ public class AudioSlidePlayer implements SensorEventListener {
|
|||||||
public void onPlayerError(ExoPlaybackException error) {
|
public void onPlayerError(ExoPlaybackException error) {
|
||||||
Log.w(TAG, "MediaPlayer Error: " + error);
|
Log.w(TAG, "MediaPlayer Error: " + error);
|
||||||
|
|
||||||
Toast.makeText(context, R.string.AudioSlidePlayer_error_playing_audio, Toast.LENGTH_SHORT).show();
|
|
||||||
|
|
||||||
synchronized (AudioSlidePlayer.this) {
|
synchronized (AudioSlidePlayer.this) {
|
||||||
mediaPlayer = null;
|
mediaPlayer = null;
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class VisibleMessageView : LinearLayout {
|
|||||||
val spacing = context.resources.getDimensionPixelSize(R.dimen.small_spacing)
|
val spacing = context.resources.getDimensionPixelSize(R.dimen.small_spacing)
|
||||||
val threshold = VisibleMessageView.swipeToReplyThreshold
|
val threshold = VisibleMessageView.swipeToReplyThreshold
|
||||||
val iconSize = toPx(24, context.resources)
|
val iconSize = toPx(24, context.resources)
|
||||||
val bottomVOffset = paddingBottom + (messageContentView.height - iconSize) / 2
|
val bottomVOffset = paddingBottom + messageStatusImageView.height + (messageContentView.height - iconSize) / 2
|
||||||
swipeToReplyIconRect.left = messageContentContainer.right + spacing
|
swipeToReplyIconRect.left = messageContentContainer.right + spacing
|
||||||
swipeToReplyIconRect.top = height - bottomVOffset - iconSize
|
swipeToReplyIconRect.top = height - bottomVOffset - iconSize
|
||||||
swipeToReplyIconRect.right = messageContentContainer.right + iconSize + spacing
|
swipeToReplyIconRect.right = messageContentContainer.right + iconSize + spacing
|
||||||
|
Loading…
Reference in New Issue
Block a user