mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
hidde "chats in common" header when no chats in common
This commit is contained in:
@@ -318,7 +318,7 @@ public class ProfileAdapter extends RecyclerView.Adapter
|
||||
}
|
||||
}
|
||||
|
||||
if (sharedChats != null && !isDeviceTalk) {
|
||||
if (!isDeviceTalk && sharedChats != null && sharedChats.getCnt() > 0) {
|
||||
itemData.add(new ItemData(ITEM_HEADER, context.getString(R.string.profile_shared_chats), 0));
|
||||
for (int i = 0; i < sharedChats.getCnt(); i++) {
|
||||
itemData.add(new ItemData(ITEM_SHARED_CHATS, 0, i));
|
||||
|
||||
Reference in New Issue
Block a user