use of org.thoughtcrime.securesms.groups.SelectionLimits in project Signal-Android by WhisperSystems.
the class AddMembersActivity method createIntent.
@NonNull
public static Intent createIntent(@NonNull Context context, @NonNull GroupId groupId, int displayModeFlags, int selectionWarning, int selectionLimit, boolean isAnnouncementGroup, @NonNull List<RecipientId> membersWithoutSelf) {
Intent intent = new Intent(context, AddMembersActivity.class);
intent.putExtra(GROUP_ID, groupId.toString());
intent.putExtra(ANNOUNCEMENT_GROUP, isAnnouncementGroup);
intent.putExtra(ContactSelectionListFragment.DISPLAY_MODE, displayModeFlags);
intent.putExtra(ContactSelectionListFragment.SELECTION_LIMITS, new SelectionLimits(selectionWarning, selectionLimit));
intent.putParcelableArrayListExtra(ContactSelectionListFragment.CURRENT_SELECTION, new ArrayList<>(membersWithoutSelf));
return intent;
}
use of org.thoughtcrime.securesms.groups.SelectionLimits in project Signal-Android by signalapp.
the class AddMembersActivity method createIntent.
@NonNull
public static Intent createIntent(@NonNull Context context, @NonNull GroupId groupId, int displayModeFlags, int selectionWarning, int selectionLimit, boolean isAnnouncementGroup, @NonNull List<RecipientId> membersWithoutSelf) {
Intent intent = new Intent(context, AddMembersActivity.class);
intent.putExtra(GROUP_ID, groupId.toString());
intent.putExtra(ANNOUNCEMENT_GROUP, isAnnouncementGroup);
intent.putExtra(ContactSelectionListFragment.DISPLAY_MODE, displayModeFlags);
intent.putExtra(ContactSelectionListFragment.SELECTION_LIMITS, new SelectionLimits(selectionWarning, selectionLimit));
intent.putParcelableArrayListExtra(ContactSelectionListFragment.CURRENT_SELECTION, new ArrayList<>(membersWithoutSelf));
return intent;
}
Aggregations