diff --git a/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java b/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java index e632478cda9..dfcbb870a7e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/ContactSelectionListFragment.java @@ -483,7 +483,7 @@ public int getTotalMemberCount() { return 0; } - return getSelectedContactsCount() + contactSearchMediator.getFixedContactsSize(); + return getSelectedMembersSize() + contactSearchMediator.getFixedContactsSize(); } private Set getCurrentSelection() { diff --git a/app/src/main/java/org/thoughtcrime/securesms/groups/ui/creategroup/CreateGroupActivity.java b/app/src/main/java/org/thoughtcrime/securesms/groups/ui/creategroup/CreateGroupActivity.java index 1c4d280d337..d8df3f531ec 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/groups/ui/creategroup/CreateGroupActivity.java +++ b/app/src/main/java/org/thoughtcrime/securesms/groups/ui/creategroup/CreateGroupActivity.java @@ -158,12 +158,11 @@ public void onContactDeselected(@NonNull Optional recipientId, Stri @Override public void onSelectionChanged() { - int selectedMembers = contactsFragment.getSelectedMembersSize(); int selectedContactsCount = contactsFragment.getTotalMemberCount(); if (selectedContactsCount == 0) { getToolbar().setTitle(getString(R.string.CreateGroupActivity__select_members)); } else { - getToolbar().setTitle(getResources().getQuantityString(R.plurals.CreateGroupActivity__d_members, selectedMembers, selectedMembers)); + getToolbar().setTitle(getResources().getQuantityString(R.plurals.CreateGroupActivity__d_members, selectedContactsCount, selectedContactsCount)); } }