Target the middle of the screen when jumping to a message.

This commit is contained in:
Greyson Parrelli 2021-02-16 14:17:11 -05:00
parent 04b7cb15cc
commit 2779d7efc5

View file

@ -1066,9 +1066,9 @@ public class ConversationFragment extends LoggingFragment {
pulsePosition = position; pulsePosition = position;
} }
list.smoothScrollToPosition(p); layoutManager.scrollToPositionWithOffset(p, list.getHeight() / 4);
} else { } else {
layoutManager.scrollToPosition(p); layoutManager.scrollToPositionWithOffset(p, list.getHeight() / 4);
getListAdapter().pulseAtPosition(position); getListAdapter().pulseAtPosition(position);
} }
}) })