mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 06:09:55 +01:00
inject SocialBackupManager
This commit is contained in:
@@ -15,11 +15,19 @@ import org.briarproject.briar.api.socialbackup.SocialBackupManager;
|
|||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
|
import javax.inject.Inject;
|
||||||
|
|
||||||
public class DistributedBackupActivity extends BriarActivity implements
|
public class DistributedBackupActivity extends BriarActivity implements
|
||||||
BaseFragment.BaseFragmentListener, ContactSelectorListener,
|
BaseFragment.BaseFragmentListener, ContactSelectorListener,
|
||||||
ThresholdDefinedListener, ShardsSentDismissedListener {
|
ThresholdDefinedListener, ShardsSentDismissedListener {
|
||||||
|
|
||||||
private Collection<ContactId> custodians;
|
private Collection<ContactId> custodians;
|
||||||
|
private SocialBackupManager socialBackupManager;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
DistributedBackupActivity(SocialBackupManager socialBackupManager) {
|
||||||
|
this.socialBackupManager = socialBackupManager;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void injectActivity(ActivityComponent component) {
|
public void injectActivity(ActivityComponent component) {
|
||||||
@@ -52,7 +60,8 @@ public class DistributedBackupActivity extends BriarActivity implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void thresholdDefined(int threshold) {
|
public void thresholdDefined(int threshold) {
|
||||||
// TODO this is the place to call socialBackupManager.createBackup()
|
// TODO this is the place to call
|
||||||
|
//socialBackupManager.createBackup();
|
||||||
ShardsSentFragment fragment = new ShardsSentFragment();
|
ShardsSentFragment fragment = new ShardsSentFragment();
|
||||||
showNextFragment(fragment);
|
showNextFragment(fragment);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user