|
|
@ -12,13 +12,13 @@ import org.tasks.location.PlaceSearchProvider
|
|
|
|
class LocationModule {
|
|
|
|
class LocationModule {
|
|
|
|
@Provides
|
|
|
|
@Provides
|
|
|
|
@ActivityScope
|
|
|
|
@ActivityScope
|
|
|
|
fun getPlaceSearchProvider(@ForApplication context: Context): PlaceSearchProvider {
|
|
|
|
fun getPlaceSearchProvider(@ApplicationContext context: Context): PlaceSearchProvider {
|
|
|
|
return MapboxSearchProvider(context)
|
|
|
|
return MapboxSearchProvider(context)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Provides
|
|
|
|
@Provides
|
|
|
|
@ActivityScope
|
|
|
|
@ActivityScope
|
|
|
|
fun getMapFragment(@ForApplication context: Context): MapFragment {
|
|
|
|
fun getMapFragment(@ApplicationContext context: Context): MapFragment {
|
|
|
|
return MapboxMapFragment(context)
|
|
|
|
return MapboxMapFragment(context)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|