Search in sources :

Example 1 with SelectionLimits

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;
}
Also used : SelectionLimits(org.thoughtcrime.securesms.groups.SelectionLimits) Intent(android.content.Intent) NonNull(androidx.annotation.NonNull)

Example 2 with SelectionLimits

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;
}
Also used : SelectionLimits(org.thoughtcrime.securesms.groups.SelectionLimits) Intent(android.content.Intent) NonNull(androidx.annotation.NonNull)

Aggregations

Intent (android.content.Intent)2 NonNull (androidx.annotation.NonNull)2 SelectionLimits (org.thoughtcrime.securesms.groups.SelectionLimits)2