mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Add Dagger injector to render()
This commit is contained in:
parent
c1f451258c
commit
2099a99e4f
2 changed files with 2 additions and 1 deletions
|
|
@ -39,6 +39,7 @@ public interface CommonsApplicationComponent extends AndroidInjector<Application
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
void inject(ApplicationlessInjection instance);
|
void inject(ApplicationlessInjection instance);
|
||||||
|
|
||||||
void inject(PlaceRenderer placeRenderer);
|
void inject(PlaceRenderer placeRenderer);
|
||||||
|
|
||||||
@Component.Builder
|
@Component.Builder
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ public class PlaceRenderer extends Renderer<Place> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render() {
|
public void render() {
|
||||||
|
((CommonsApplication) getContext().getApplicationContext()).injector().inject(this);
|
||||||
place = getContent();
|
place = getContent();
|
||||||
tvName.setText(place.name);
|
tvName.setText(place.name);
|
||||||
String descriptionText = place.getLongDescription();
|
String descriptionText = place.getLongDescription();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue