mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Remove FIXMEs in PlaceRenderer
This commit is contained in:
parent
d6e848b32e
commit
29ccd5826c
1 changed files with 0 additions and 4 deletions
|
|
@ -121,14 +121,12 @@ public class PlaceRenderer extends Renderer<Place> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void storeSharedPrefs() {
|
private void storeSharedPrefs() {
|
||||||
//FIXME: This line crashes on list, but not on map
|
|
||||||
SharedPreferences.Editor editor = directPrefs.edit();
|
SharedPreferences.Editor editor = directPrefs.edit();
|
||||||
Timber.d("directPrefs stored");
|
Timber.d("directPrefs stored");
|
||||||
editor.putString("Title", place.getName());
|
editor.putString("Title", place.getName());
|
||||||
editor.putString("Desc", place.getLongDescription());
|
editor.putString("Desc", place.getLongDescription());
|
||||||
editor.putString("Category", place.getCategory());
|
editor.putString("Category", place.getCategory());
|
||||||
editor.apply();
|
editor.apply();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closeLayout(LinearLayout buttonLayout){
|
private void closeLayout(LinearLayout buttonLayout){
|
||||||
|
|
@ -141,10 +139,8 @@ public class PlaceRenderer extends Renderer<Place> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render() {
|
public void render() {
|
||||||
//FIXME: injector() method has been removed from CommonsApplication.java
|
|
||||||
ApplicationlessInjection.getInstance(getContext().getApplicationContext())
|
ApplicationlessInjection.getInstance(getContext().getApplicationContext())
|
||||||
.getCommonsApplicationComponent().inject(this);
|
.getCommonsApplicationComponent().inject(this);
|
||||||
//((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