mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +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()),
|
String.format("selected %d contacts", contacts.size()),
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
custodians = contacts;
|
custodians = contacts;
|
||||||
|
if (contacts.size() < 4) {
|
||||||
|
// For 2 or 3 contacts, there is no choice of threshold
|
||||||
|
thresholdDefined(2);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ThresholdSelectorFragment fragment =
|
ThresholdSelectorFragment fragment =
|
||||||
ThresholdSelectorFragment.newInstance(contacts.size());
|
ThresholdSelectorFragment.newInstance(contacts.size());
|
||||||
showNextFragment(fragment);
|
showNextFragment(fragment);
|
||||||
|
|||||||
Reference in New Issue
Block a user