mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 04:06:14 +00:00
Prevent crash when ConversationListFragment list is nullified.
This commit is contained in:
@@ -764,6 +764,10 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
int firstVisibleItem = layoutManager != null ? layoutManager.findFirstCompletelyVisibleItemPosition() : -1;
|
||||
|
||||
defaultAdapter.submitList(conversations, () -> {
|
||||
if (list == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (firstVisibleItem == 0) {
|
||||
list.scrollToPosition(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user