From 5b08791086837dee1b684b6d2b8249e35fd3d583 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 14 Nov 2014 15:44:49 -0800 Subject: [PATCH] Fix regression with providers being registered. // FREEBIE --- src/org/thoughtcrime/securesms/ApplicationContext.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java index e82393fae6..fbd330ee28 100644 --- a/src/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/org/thoughtcrime/securesms/ApplicationContext.java @@ -25,9 +25,12 @@ import org.thoughtcrime.securesms.dependencies.InjectableType; import org.thoughtcrime.securesms.dependencies.TextSecureCommunicationModule; import org.thoughtcrime.securesms.jobs.GcmRefreshJob; 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.whispersystems.jobqueue.JobManager; import org.whispersystems.jobqueue.dependencies.DependencyInjector; +import org.whispersystems.jobqueue.requirements.NetworkRequirementProvider; import dagger.ObjectGraph; @@ -77,6 +80,9 @@ public class ApplicationContext extends Application implements DependencyInjecto .withName("TextSecureJobs") .withDependencyInjector(this) .withJobSerializer(new EncryptingJobSerializer(this)) + .withRequirementProviders(new MasterSecretRequirementProvider(this), + new ServiceRequirementProvider(this), + new NetworkRequirementProvider(this)) .withConsumerThreads(5) .build(); }