mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Use AndroidExecutor for background tasks that make API calls.
This commit is contained in:
@@ -6,6 +6,8 @@ import org.briarproject.android.api.AndroidExecutor;
|
||||
import org.briarproject.api.system.LocationUtils;
|
||||
import org.briarproject.api.system.SeedProvider;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
|
||||
@@ -23,7 +25,8 @@ public class AndroidSystemModule {
|
||||
}
|
||||
|
||||
@Provides
|
||||
public AndroidExecutor providePlatformExecutor(Application app) {
|
||||
return new AndroidExecutorImpl(app);
|
||||
@Singleton
|
||||
public AndroidExecutor provideAndroidExecutor() {
|
||||
return new AndroidExecutorImpl();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user