mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fix regression with providers being registered.
// FREEBIE
This commit is contained in:
parent
31b9dcb5eb
commit
5b08791086
@ -25,9 +25,12 @@ import org.thoughtcrime.securesms.dependencies.InjectableType;
|
|||||||
import org.thoughtcrime.securesms.dependencies.TextSecureCommunicationModule;
|
import org.thoughtcrime.securesms.dependencies.TextSecureCommunicationModule;
|
||||||
import org.thoughtcrime.securesms.jobs.GcmRefreshJob;
|
import org.thoughtcrime.securesms.jobs.GcmRefreshJob;
|
||||||
import org.thoughtcrime.securesms.jobs.persistence.EncryptingJobSerializer;
|
import org.thoughtcrime.securesms.jobs.persistence.EncryptingJobSerializer;
|
||||||
|
import org.thoughtcrime.securesms.jobs.requirements.MasterSecretRequirementProvider;
|
||||||
|
import org.thoughtcrime.securesms.jobs.requirements.ServiceRequirementProvider;
|
||||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||||
import org.whispersystems.jobqueue.JobManager;
|
import org.whispersystems.jobqueue.JobManager;
|
||||||
import org.whispersystems.jobqueue.dependencies.DependencyInjector;
|
import org.whispersystems.jobqueue.dependencies.DependencyInjector;
|
||||||
|
import org.whispersystems.jobqueue.requirements.NetworkRequirementProvider;
|
||||||
|
|
||||||
import dagger.ObjectGraph;
|
import dagger.ObjectGraph;
|
||||||
|
|
||||||
@ -77,6 +80,9 @@ public class ApplicationContext extends Application implements DependencyInjecto
|
|||||||
.withName("TextSecureJobs")
|
.withName("TextSecureJobs")
|
||||||
.withDependencyInjector(this)
|
.withDependencyInjector(this)
|
||||||
.withJobSerializer(new EncryptingJobSerializer(this))
|
.withJobSerializer(new EncryptingJobSerializer(this))
|
||||||
|
.withRequirementProviders(new MasterSecretRequirementProvider(this),
|
||||||
|
new ServiceRequirementProvider(this),
|
||||||
|
new NetworkRequirementProvider(this))
|
||||||
.withConsumerThreads(5)
|
.withConsumerThreads(5)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user