From f44e65536101d2deb00aeb15669ac928f0f58440 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 28 Jun 2021 15:44:11 +1000 Subject: [PATCH] Fix reply icon offset bug --- .../java/org/thoughtcrime/securesms/audio/AudioSlidePlayer.java | 2 -- .../securesms/conversation/v2/messages/VisibleMessageView.kt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/audio/AudioSlidePlayer.java b/app/src/main/java/org/thoughtcrime/securesms/audio/AudioSlidePlayer.java index 8877994fbf..56a06d0ccd 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/audio/AudioSlidePlayer.java +++ b/app/src/main/java/org/thoughtcrime/securesms/audio/AudioSlidePlayer.java @@ -184,8 +184,6 @@ public class AudioSlidePlayer implements SensorEventListener { public void onPlayerError(ExoPlaybackException error) { Log.w(TAG, "MediaPlayer Error: " + error); - Toast.makeText(context, R.string.AudioSlidePlayer_error_playing_audio, Toast.LENGTH_SHORT).show(); - synchronized (AudioSlidePlayer.this) { mediaPlayer = null; diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt index 6a56fb83ab..c8d91496d2 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageView.kt @@ -194,7 +194,7 @@ class VisibleMessageView : LinearLayout { val spacing = context.resources.getDimensionPixelSize(R.dimen.small_spacing) val threshold = VisibleMessageView.swipeToReplyThreshold 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.top = height - bottomVOffset - iconSize swipeToReplyIconRect.right = messageContentContainer.right + iconSize + spacing