forked from organicmaps/organicmaps
Merge pull request #2535 from yunikkk/routing-slot-empty
[android] Fixed empty routing slot.
This commit is contained in:
commit
218762dc4f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue