mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Update src/org/thoughtcrime/securesms/ConversationListAdapter.java
Co-authored-by: bjoern <r10s@b44t.com>
This commit is contained in:
committed by
GitHub
parent
1553c41147
commit
4a59e2cfd3
@@ -195,11 +195,15 @@ class ConversationListAdapter extends RecyclerView.Adapter {
|
||||
}
|
||||
|
||||
void changeData(@Nullable DcChatlist chatlist) {
|
||||
Context context = this.context.get();
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
if (chatlist == null) {
|
||||
dcChatlist = new DcChatlist(0, 0);
|
||||
} else {
|
||||
dcChatlist = chatlist;
|
||||
dcContext = DcHelper.getContext(context.get());
|
||||
dcContext = DcHelper.getContext(context);
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user