mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Fix small dagger issue to inject location manager properly
This commit is contained in:
parent
53ee714eff
commit
aa7fb84313
2 changed files with 11 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ import fr.free.nrw.commons.explore.recentsearches.RecentSearchesFragment;
|
|||
import fr.free.nrw.commons.media.MediaDetailFragment;
|
||||
import fr.free.nrw.commons.media.MediaDetailPagerFragment;
|
||||
import fr.free.nrw.commons.nearby.NearbyListFragment;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestLayersFragment;
|
||||
import fr.free.nrw.commons.nearby.SupportMapFragment;
|
||||
import fr.free.nrw.commons.nearby.mvp.fragments.NearbyParentFragment;
|
||||
import fr.free.nrw.commons.review.ReviewImageFragment;
|
||||
|
|
@ -65,6 +66,9 @@ public abstract class FragmentBuilderModule {
|
|||
@ContributesAndroidInjector
|
||||
abstract NearbyParentFragment bindNearbyParentFragment();
|
||||
|
||||
@ContributesAndroidInjector
|
||||
abstract NearbyTestLayersFragment bindNearbyTestLayersFragment();
|
||||
|
||||
@ContributesAndroidInjector
|
||||
abstract BookmarkPicturesFragment bindBookmarkPictureListFragment();
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,10 @@ import com.mapbox.mapboxsdk.maps.Style;
|
|||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import butterknife.ButterKnife;
|
||||
import fr.free.nrw.commons.R;
|
||||
import fr.free.nrw.commons.contributions.MainActivity;
|
||||
import fr.free.nrw.commons.di.CommonsDaggerSupportFragment;
|
||||
import fr.free.nrw.commons.location.LocationServiceManager;
|
||||
import fr.free.nrw.commons.nearby.mvp.contract.NearbyParentFragmentContract;
|
||||
import fr.free.nrw.commons.nearby.mvp.presenter.NearbyParentFragmentPresenter;
|
||||
|
|
@ -34,18 +36,21 @@ import static fr.free.nrw.commons.contributions.ContributionsFragment.CONTRIBUTI
|
|||
import static fr.free.nrw.commons.nearby.NearbyTestFragmentLayersActivity.CONTRIBUTIONS_TAB_POSITION;
|
||||
|
||||
|
||||
public class NearbyTestLayersFragment extends Fragment implements NearbyParentFragmentContract.View {
|
||||
public class NearbyTestLayersFragment extends CommonsDaggerSupportFragment implements NearbyParentFragmentContract.View {
|
||||
|
||||
@Inject
|
||||
LocationServiceManager locationManager;
|
||||
|
||||
NearbyParentFragmentPresenter nearbyParentFragmentPresenter;
|
||||
SupportMapFragment mapFragment;
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
View view = inflater.inflate(R.layout.fragment_simple, container, false);
|
||||
ButterKnife.bind(this, view);
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_simple, container, false);
|
||||
return view;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue