[2.13.0-arch-opt] add trace of httpdns and fix small map draw line

This commit is contained in:
zhongchao
2023-02-28 10:42:58 +08:00
parent 404150e24a
commit 74d616c092
3 changed files with 23 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ class SmallMapView @JvmOverloads constructor(
fun drawablePolyline() {
clearPolyline()
if (mAMap != null) {
if (mCoordinatesLatLng.size > 2) {
if (mCoordinatesLatLng.size >= 2) {
// 设置开始结束Marker位置
mStartMarker!!.position = mCoordinatesLatLng[0]
mEndMarker!!.position = mCoordinatesLatLng[mCoordinatesLatLng.size - 1]