| | |
| | | titleBar.getRightButton(0)?.gone() |
| | | aMap?.isMyLocationEnabled = false //行程中取消乘客定位 |
| | | drawLine() |
| | | ll_receiver_goods_code.isVisible = |
| | | it.orderType == Const.OrderType.TYPE_SAME_CITY |
| | | ll_receiver_goods_code.isVisible = it.orderType == Const.OrderType.TYPE_SAME_CITY |
| | | tv_receiver_goods_code.text = getString(R.string.取件码) + (it.code ?: "") |
| | | } |
| | | |
| | |
| | | val latLon = LatLng(order!!.startLat, order!!.startLon) |
| | | val waittime = order!!.insertTime.parserTime() |
| | | val s = System.currentTimeMillis() |
| | | val i = Math.max(s - waittime, 0L) |
| | | val i = (s - waittime).coerceAtLeast(0L) |
| | | val c = getString(R.string.正在寻找车辆, i / 1000 / 60, i / 1000 % 60) |
| | | setMarker( |
| | | latLon, SpanBuilder(c) |
| | | .color(this, c.length - 6, c.length, R.color.colorRed).build() |
| | | latLon, |
| | | SpanBuilder(c).color(this, c.length - 6, c.length, R.color.colorRed).build() |
| | | ) |
| | | IGoApplication.intervalCount++ |
| | | if (IGoApplication.intervalCount > 7) { |