mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
642 B
Java
25 lines
642 B
Java
package org.tasks.injection;
|
|
|
|
import android.content.Context;
|
|
import dagger.Module;
|
|
import dagger.Provides;
|
|
import org.tasks.location.MapFragment;
|
|
import org.tasks.location.MapboxMapFragment;
|
|
import org.tasks.location.MapboxSearchProvider;
|
|
import org.tasks.location.PlaceSearchProvider;
|
|
|
|
@Module
|
|
public class LocationModule {
|
|
@Provides
|
|
@ActivityScope
|
|
public PlaceSearchProvider getPlaceSearchProvider(@ForApplication Context context) {
|
|
return new MapboxSearchProvider(context);
|
|
}
|
|
|
|
@Provides
|
|
@ActivityScope
|
|
public MapFragment getMapFragment(@ForApplication Context context) {
|
|
return new MapboxMapFragment(context);
|
|
}
|
|
}
|