diff --git a/android/src/com/mapswithme/maps/editor/EditorFragment.java b/android/src/com/mapswithme/maps/editor/EditorFragment.java index 1bb37daf7a..567a7eb288 100644 --- a/android/src/com/mapswithme/maps/editor/EditorFragment.java +++ b/android/src/com/mapswithme/maps/editor/EditorFragment.java @@ -72,7 +72,7 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe mEtPhone.setText(mEditedPoi.getMetadata(Metadata.MetadataType.FMD_PHONE_NUMBER)); mEtWebsite.setText(mEditedPoi.getMetadata(Metadata.MetadataType.FMD_WEBSITE)); mEtEmail.setText(mEditedPoi.getMetadata(Metadata.MetadataType.FMD_EMAIL)); - mTvCuisine.setText(mEditedPoi.getMetadata(Metadata.MetadataType.FMD_CUISINE)); + mTvCuisine.setText(mEditedPoi.getCuisine()); mSwWifi.setChecked(!TextUtils.isEmpty(mEditedPoi.getMetadata(Metadata.MetadataType.FMD_INTERNET))); refreshOpeningTime(); diff --git a/android/src/com/mapswithme/maps/widget/placepage/TimetableFragment.java b/android/src/com/mapswithme/maps/widget/placepage/TimetableFragment.java index eebdeae152..e748feb9bb 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/TimetableFragment.java +++ b/android/src/com/mapswithme/maps/widget/placepage/TimetableFragment.java @@ -4,6 +4,7 @@ import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.AlertDialog; +import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -55,7 +56,7 @@ public class TimetableFragment extends BaseMwmFragment simpleMode(); final Bundle args = getArguments(); - if (args != null && args.containsKey(EXTRA_TIME)) + if (args != null && !TextUtils.isEmpty(args.getString(EXTRA_TIME))) mSimpleModeFragment.setTimetables(OpeningHours.nativeTimetablesFromString(args.getString(EXTRA_TIME))); }