opt
This commit is contained in:
@@ -57,6 +57,7 @@ class MainService : Service() {
|
||||
var picType: Int = 0
|
||||
var videoType: Int = 0
|
||||
var shareType: String = "type"
|
||||
var fromType: String = ""
|
||||
var isCustom: Boolean = false
|
||||
|
||||
var params: UploadParams? = null
|
||||
@@ -88,6 +89,7 @@ class MainService : Service() {
|
||||
params = intent.getParcelableExtra("params")
|
||||
params?.let {
|
||||
shareType = it.eventType
|
||||
fromType = it.fromType
|
||||
Log.d(TAG, "onStartCommand shareType = $shareType")
|
||||
if (shareType == TANLU_ROAD_CONGESTION || shareType == TANLU_TRAFFIC_CHECK || shareType == TANLU_ROAD_CLOSURE || shareType == TANLU_ROAD_CURRENT
|
||||
|| shareType == TANLU_ROAD_PONDING || shareType == TANLU_ROAD_ICING || shareType == TANLU_ROAD_HEAVY_FOG
|
||||
@@ -207,6 +209,7 @@ class MainService : Service() {
|
||||
|
||||
private fun sendMarkerInfoReceiver(lat: Double, lon: Double, imageUrl: String?, type: String?) {
|
||||
Log.e("MainService", "sendMarkerInfoReceiver ------> type = $type ")
|
||||
Log.e("MainService", "sendMarkerInfoReceiver ------> fromType = $fromType ")
|
||||
Log.e("MainService", "sendMarkerInfoReceiver ------> isCustom = $isCustom ")
|
||||
var intent = Intent()
|
||||
intent.action = "com.zhidao.roadcondition.marker.info"
|
||||
@@ -215,6 +218,7 @@ class MainService : Service() {
|
||||
intent.putExtra("lat", lat)
|
||||
intent.putExtra("lon", lon)
|
||||
intent.putExtra("custom", isCustom)
|
||||
intent.putExtra("fromType", fromType)
|
||||
sendBroadcast(intent)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user