区分分享优化需求范围,launcher不加此需求,独立app加此需求
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.util.Log
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.module.tanlu.model.event.MarkerInfo
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
|
||||
@@ -20,8 +21,9 @@ class MarkerInfoReceiver : BroadcastReceiver() {
|
||||
var lon = intent.getDoubleExtra("lon",0.0) //经度
|
||||
var custom = intent.getBooleanExtra("custom", false)
|
||||
Log.d("MarkerInfoReceiver", "type =" + type + "---->lat =" + lat + "----lon =" + lon + " --custom = " + custom + "---imageUrl =" + imageUrl)
|
||||
// 此处不接收抓取完成的广播,1.1.5的需求是触发即分享成功,所以此处逻辑暂时注释,待日后看情况放开
|
||||
// EventBus.getDefault().post(MarkerInfo(type, imageUrl,lon, lat, custom, fromType))
|
||||
if(DebugConfig.isLauncher()) {
|
||||
EventBus.getDefault().post(MarkerInfo(type, imageUrl, lon, lat, custom, fromType))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user