mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Target the middle of the screen when jumping to a message.
This commit is contained in:
@@ -1066,9 +1066,9 @@ public class ConversationFragment extends LoggingFragment {
|
||||
pulsePosition = position;
|
||||
}
|
||||
|
||||
list.smoothScrollToPosition(p);
|
||||
layoutManager.scrollToPositionWithOffset(p, list.getHeight() / 4);
|
||||
} else {
|
||||
layoutManager.scrollToPosition(p);
|
||||
layoutManager.scrollToPositionWithOffset(p, list.getHeight() / 4);
|
||||
getListAdapter().pulseAtPosition(position);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user