Replace title/desc in NearbyMapFragment to fix NPE

This commit is contained in:
misaochan 2018-01-24 22:06:42 +10:00
parent 083564c906
commit 6134cf4d14

View file

@ -424,8 +424,8 @@ public class NearbyMapFragment extends DaggerFragment {
void storeSharedPrefs() { void storeSharedPrefs() {
SharedPreferences.Editor editor = directPrefs.edit(); SharedPreferences.Editor editor = directPrefs.edit();
editor.putString("Title", title); editor.putString("Title", place.getName());
editor.putString("Desc", desc); editor.putString("Desc", place.getLongDescription());
editor.apply(); editor.apply();
} }