| | |
| | | import com.okgoincar.bean.websocket.HeartBean |
| | | import com.okgoincar.netUtls.Api |
| | | import com.okgoincar.netUtls.getUserId |
| | | import com.okgoincar.netUtls.sendAudio |
| | | import com.okgoincar.slab.MySlabBaseActivity |
| | | import com.okgoincar.utils.Cache.CacheKey |
| | | import org.jetbrains.anko.toast |
| | |
| | | return Gson().fromJson(locationStr, AMapLocation::class.java) |
| | | } else { |
| | | val amap = AMapLocation("") |
| | | amap.latitude = -1.0 |
| | | amap.longitude = -1.0 |
| | | amap.latitude = 0.0 |
| | | amap.longitude = 0.0 |
| | | return amap |
| | | } |
| | | } else { |
| | |
| | | showNum-- |
| | | Handler(Looper.getMainLooper()).postDelayed({ |
| | | if (showNum == 0) { |
| | | setVideoText("OK出行司机已置于后台,可能会导致听单异常,里程计费差异,请勿切换。") |
| | | // getTTsManager().setVideoText("OK出行司机已置于后台,可能会导致听单异常,里程计费差异,请勿切换。") |
| | | getTTsManager().setVideoText("OK出行司机已置于后台,可能会导致听单异常,里程计费差异,请勿切换。") |
| | | } |
| | | }, 600) |
| | | |
| | |
| | | activities.add(activity) |
| | | } |
| | | |
| | | fun setVideoText(s: String?) { |
| | | val intent = Intent() |
| | | intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK |
| | | intent.action = "com.wisdom.gps.action.tts" |
| | | intent.putExtra("msg", s) |
| | | sendBroadcast(intent) |
| | | } |
| | | |
| | | } |