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.
tasks/app/src/amazon/java/org/tasks/injection/LocationModule.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);
}
}