mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Ensure onboarding cards are cleared with enough conversations.
This commit is contained in:
@@ -680,9 +680,10 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
int firstVisibleItem = layoutManager != null ? layoutManager.findFirstCompletelyVisibleItemPosition() : -1;
|
||||
|
||||
defaultAdapter.submitList(conversations, () -> {
|
||||
if (firstVisibleItem == 0) {
|
||||
list.scrollToPosition(0);
|
||||
}
|
||||
if (firstVisibleItem == 0) {
|
||||
list.scrollToPosition(0);
|
||||
}
|
||||
onPostSubmitList(conversations.size());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1022,11 +1023,6 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
}
|
||||
}
|
||||
|
||||
private void onSubmitList(@NonNull List<Conversation> conversationList) {
|
||||
defaultAdapter.submitList(conversationList);
|
||||
onPostSubmitList(conversationList.size());
|
||||
}
|
||||
|
||||
void updateEmptyState(boolean isConversationEmpty) {
|
||||
if (isConversationEmpty) {
|
||||
Log.i(TAG, "Received an empty data set.");
|
||||
|
||||
Reference in New Issue
Block a user