mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
only allow choosing a threshold with > 3 custodians
This commit is contained in:
@@ -64,6 +64,11 @@ public class DistributedBackupActivity extends BriarActivity implements
|
||||
String.format("selected %d contacts", contacts.size()),
|
||||
Toast.LENGTH_SHORT).show();
|
||||
custodians = contacts;
|
||||
if (contacts.size() < 4) {
|
||||
// For 2 or 3 contacts, there is no choice of threshold
|
||||
thresholdDefined(2);
|
||||
return;
|
||||
}
|
||||
ThresholdSelectorFragment fragment =
|
||||
ThresholdSelectorFragment.newInstance(contacts.size());
|
||||
showNextFragment(fragment);
|
||||
|
||||
Reference in New Issue
Block a user