Search in sources :

Example 1 with NetworkRequirementProvider

use of org.whispersystems.jobqueue.requirements.NetworkRequirementProvider in project Signal-Android by WhisperSystems.

the class MessageRetrievalService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    ApplicationContext.getInstance(this).injectDependencies(this);
    networkRequirement = new NetworkRequirement(this);
    networkRequirementProvider = new NetworkRequirementProvider(this);
    networkRequirementProvider.setListener(this);
    retrievalThread = new MessageRetrievalThread();
    retrievalThread.start();
    setForegroundIfNecessary();
}
Also used : NetworkRequirement(org.whispersystems.jobqueue.requirements.NetworkRequirement) NetworkRequirementProvider(org.whispersystems.jobqueue.requirements.NetworkRequirementProvider)

Aggregations

NetworkRequirement (org.whispersystems.jobqueue.requirements.NetworkRequirement)1 NetworkRequirementProvider (org.whispersystems.jobqueue.requirements.NetworkRequirementProvider)1