opt
This commit is contained in:
@@ -212,9 +212,9 @@ class CosStatusController : CosStatusCallback {
|
||||
latitude = latitude
|
||||
) { success ->
|
||||
CosCallbackMapController.unregisterCallbacks(map)
|
||||
CosCallbackMapController.mainService?.let {
|
||||
CosCallbackMapController.mainService?.sendCustomResult(success)
|
||||
}
|
||||
// CosCallbackMapController.mainService?.let {
|
||||
// CosCallbackMapController.mainService?.sendCustomResult(success)
|
||||
// }
|
||||
Log.d(TAG, "type = $type ----success = $success")
|
||||
if (success) {
|
||||
//分享成功,并打点,如果是上报拥堵,需要takeVideo
|
||||
|
||||
@@ -66,11 +66,11 @@ class MainService : Service() {
|
||||
private var mLatitude: Double = 0.0
|
||||
|
||||
//发送主动上报结果广播给外部
|
||||
fun sendCustomResult(result: Boolean) {
|
||||
var intent = Intent(customResultAction)
|
||||
intent.putExtra("isSuccess", result)
|
||||
sendBroadcast(intent)
|
||||
}
|
||||
// fun sendCustomResult(result: Boolean) {
|
||||
// var intent = Intent(customResultAction)
|
||||
// intent.putExtra("isSuccess", result)
|
||||
// sendBroadcast(intent)
|
||||
// }
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
Log.d(TAG, "onStartCommand -----------> ")
|
||||
|
||||
Reference in New Issue
Block a user