From d2c92897e22b2c1992eceaef585f967a06b6ea84 Mon Sep 17 00:00:00 2001 From: liugl <liugl@sinata.cn> Date: 星期一, 02 十一月 2020 15:59:29 +0800 Subject: [PATCH] 11.30 首页列表添加 其他数据用来展示页面 不空 --- app/src/main/java/com/okgoincar/slab/SlabTripActivity.kt | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/okgoincar/slab/SlabTripActivity.kt b/app/src/main/java/com/okgoincar/slab/SlabTripActivity.kt index 7c2de92..87aa844 100644 --- a/app/src/main/java/com/okgoincar/slab/SlabTripActivity.kt +++ b/app/src/main/java/com/okgoincar/slab/SlabTripActivity.kt @@ -366,8 +366,11 @@ private fun initMineLocation() { AMapKit.initLocation(this, AMapLocationListener { it?.let { - MyApplication.aMapLocation = it - carMarker!!.position = LatLng(it.latitude, it.longitude) +// toast("errorCode=="+it.errorCode.toString()+"latitude=="+it.latitude.toString()) + if (it.errorCode == 0) { + MyApplication.aMapLocation = it + carMarker!!.position = LatLng(it.latitude, it.longitude) + } } orderBean.let { when (it.data.orderState) { @@ -664,11 +667,11 @@ override fun onEventMainThread(event: BaseEvent?) { super.onEventMainThread(event) when (event!!.code) { - BaseEvent.REAGASSIGN_SUCCESS -> { - MyApplication.currentOrderId = "" - MyApplication.currentOrderType = "" - finish() - } +// BaseEvent.REAGASSIGN_SUCCESS -> { +// MyApplication.currentOrderId = "" +// MyApplication.currentOrderType = "" +// finish() +// } BaseEvent.UP_TRIP -> { callOrder() } -- Gitblit v1.7.1