mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 13:18:34 +00:00
Fix possible context crash.
This commit is contained in:
parent
a7dd78cce6
commit
a0dfd42527
@ -323,8 +323,9 @@ public class ConversationFragment extends Fragment
|
||||
|
||||
if (recipients.size() > 0) {
|
||||
if (!isTypingIndicatorShowing() && isAtBottom()) {
|
||||
Context context = requireContext();
|
||||
list.setVerticalScrollBarEnabled(false);
|
||||
list.post(() -> getListLayoutManager().smoothScrollToPosition(requireContext(), 0, 250));
|
||||
list.post(() -> getListLayoutManager().smoothScrollToPosition(context, 0, 250));
|
||||
list.postDelayed(() -> list.setVerticalScrollBarEnabled(true), 300);
|
||||
adapter.setHeaderView(typingView);
|
||||
adapter.notifyItemInserted(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user