Skip to content

Commit

Permalink
Make sure network state provider is shared properly
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Jun 10, 2024
1 parent 8ca2b49 commit 57c459c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.odk.collect.android.support;

import android.app.Application;
import android.content.Context;
import android.webkit.MimeTypeMap;

import androidx.work.WorkManager;
Expand All @@ -11,6 +12,7 @@
import org.odk.collect.android.version.VersionInformation;
import org.odk.collect.android.views.BarcodeViewDecoder;
import org.odk.collect.async.Scheduler;
import org.odk.collect.async.network.NetworkStateProvider;
import org.odk.collect.utilities.UserAgentProvider;

public class TestDependencies extends AppDependencyModule {
Expand All @@ -35,4 +37,9 @@ public Scheduler providesScheduler(WorkManager workManager) {
public BarcodeViewDecoder providesBarcodeViewDecoder() {
return stubBarcodeViewDecoder;
}

@Override
public NetworkStateProvider providesNetworkStateProvider(Context context) {
return networkStateProvider;
}
}

0 comments on commit 57c459c

Please sign in to comment.