This commit is contained in:
lixiaopeng
2020-01-17 20:23:03 +08:00
parent 5492e3e9a1
commit 04a0576ed9
2 changed files with 1 additions and 23 deletions

View File

@@ -832,7 +832,7 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
.latitude(event.lat)
.owner(TanluConstants.MODEL_NAME)
.longitude(event.lon);
IMogoMarker marker = mMarkerManager.addMarker("share_tag", options); //随便传tag不可点击
mMarkerManager.addMarker("share_tag", options); //随便传tag不可点击
//请求分享接口
MarkerExploreWay markerExploreWay = markerExploreWayList.get(0);
if (markerExploreWay.getUserInfo() != null) {

View File

@@ -1,22 +0,0 @@
package com.mogo.module.tanlu.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.mogo.module.tanlu.model.event.VoiceRoadInfo
import org.greenrobot.eventbus.EventBus
/**
* xx堵不堵接收关键字,应该在哪里接收关键字请求接口?
*/
class RoadInfoReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.action == "com.zhidao.roadcondition.roadinfo"){
var keyWords = intent.getStringExtra("keywords")
var city = intent.getStringExtra("city")
Log.d("RoadInfoReceiver", "keyWords = $keyWords ---->city = $city")
EventBus.getDefault().post(VoiceRoadInfo(keyWords, city))
}
}
}