rm comments

This commit is contained in:
ameba23
2021-03-08 12:57:25 +01:00
parent bf6dd0d924
commit 451a3238be
2 changed files with 4 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ public class DistributedBackupActivity extends BriarActivity implements
BaseFragment.BaseFragmentListener, ContactSelectorListener,
ThresholdDefinedListener, ShardsSentDismissedListener {
private Collection<ContactId> custodians;
@Override
public void injectActivity(ActivityComponent component) {
component.inject(this);
@@ -39,12 +41,14 @@ public class DistributedBackupActivity extends BriarActivity implements
Toast.makeText(this,
String.format("selected %d contacts", contacts.size()),
Toast.LENGTH_SHORT).show();
custodians = contacts;
ThresholdSelectorFragment fragment = ThresholdSelectorFragment.newInstance(contacts.size());
showNextFragment(fragment);
}
@Override
public void thresholdDefined(int threshold) {
// SocialBackupManager socialBackupManager
ShardsSentFragment fragment = new ShardsSentFragment();
showNextFragment(fragment);
}

View File

@@ -43,7 +43,6 @@ public class ThresholdSelectorFragment extends BaseFragment {
bundle.putInt(NUMBER_CUSTODIANS, numberCustodians);
ThresholdSelectorFragment fragment = new ThresholdSelectorFragment();
fragment.setArguments(bundle);
// fragment.setNumberCustodians(numberCustodians);
return fragment;
}
@@ -62,9 +61,6 @@ public class ThresholdSelectorFragment extends BaseFragment {
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_select_threshold,
container, false);
// if (savedInstanceState != null) {
// numberOfCustodians = savedInstanceState.getInt("numberCustodians");
// }
Bundle args = requireArguments();
numberOfCustodians = args.getInt(NUMBER_CUSTODIANS);