Fix issues with jumpToMessage behavior.
This commit is contained in:
parent
c3d7b88cf6
commit
c7585c5594
2 changed files with 2 additions and 1 deletions
|
@ -1005,7 +1005,7 @@ public class ConversationFragment extends LoggingFragment {
|
|||
|
||||
private void moveToPosition(int position, @Nullable Runnable onMessageNotFound) {
|
||||
Log.d(TAG, "moveToPosition(" + position + ")");
|
||||
conversationViewModel.onConversationDataAvailable(threadId, position);
|
||||
conversationViewModel.getPagingController().onDataNeededAroundIndex(position);
|
||||
snapToTopDataObserver.buildScrollPosition(position)
|
||||
.withOnPerformScroll(((layoutManager, p) ->
|
||||
list.post(() -> {
|
||||
|
|
|
@ -127,6 +127,7 @@ public class SnapToTopDataObserver extends RecyclerView.AdapterDataObserver {
|
|||
}
|
||||
|
||||
if (layoutManager.findFirstVisibleItemPosition() == 0) {
|
||||
Log.d(TAG, "Scrolling to top.");
|
||||
scrollToTop.scrollToTop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue