mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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
|
||||
void inject(ApplicationlessInjection instance);
|
||||
|
||||
void inject(PlaceRenderer placeRenderer);
|
||||
|
||||
@Component.Builder
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ public class PlaceRenderer extends Renderer<Place> {
|
|||
|
||||
@Override
|
||||
public void render() {
|
||||
|
||||
((CommonsApplication) getContext().getApplicationContext()).injector().inject(this);
|
||||
place = getContent();
|
||||
tvName.setText(place.name);
|
||||
String descriptionText = place.getLongDescription();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue