| | |
| | | package com.okgoincar.slab |
| | | |
| | | import android.content.Intent |
| | | import android.os.Bundle |
| | | import android.os.Handler |
| | | import android.os.Looper |
| | |
| | | getAllMark(it) |
| | | when (it.data.orderState) { |
| | | 2, 3 -> { |
| | | toast("点亮网约") |
| | | clickBroad() |
| | | iv_to_gd.visible() |
| | | makeMarker?.isVisible = true |
| | | carMarker?.isVisible = true |
| | |
| | | } |
| | | } |
| | | 4 -> { |
| | | toast("点亮网约") |
| | | clickBroad() |
| | | iv_to_gd.gone() |
| | | closeLine() |
| | | carMarker?.isVisible = true |
| | |
| | | } |
| | | } |
| | | |
| | | fun clickBroad(){ |
| | | var intent = Intent(); |
| | | intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK; |
| | | intent.action = "wisdom.intent.action.topLight"; |
| | | intent.putExtra("state",0) |
| | | sendBroadcast(intent); |
| | | } |
| | | |
| | | private fun startTimeStart(waitTime: Int) { |
| | | if (!isTimeStart) { |