diff --git a/android/src/com/mapswithme/maps/routing/SlotFrame.java b/android/src/com/mapswithme/maps/routing/SlotFrame.java index 71da5fa15b..e6f0dfd134 100644 --- a/android/src/com/mapswithme/maps/routing/SlotFrame.java +++ b/android/src/com/mapswithme/maps/routing/SlotFrame.java @@ -7,6 +7,7 @@ import android.graphics.Rect; import android.os.Build; import android.support.annotation.IdRes; import android.support.annotation.NonNull; +import android.text.TextUtils; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; @@ -99,7 +100,7 @@ public class SlotFrame extends LinearLayout if (MapObject.isOfType(MapObject.MY_POSITION, mMapObject)) mText.setText(R.string.p2p_your_location); else - mText.setText(mMapObject.getTitle()); + mText.setText(!TextUtils.isEmpty(mMapObject.getTitle()) ? mMapObject.getTitle() : mMapObject.getSubtitle()); mText.setTextColor(mTextColor); }