配合探路合并,更换道路事件上报广播

This commit is contained in:
tongchenfei
2020-06-08 13:41:10 +08:00
parent 76bdc73611
commit 520a981796
2 changed files with 3 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ import com.mogo.module.extensions.userinfo.UserInfoResponse;
import com.mogo.module.extensions.utils.ExtensionsConfig;
import com.mogo.module.share.ShareControl;
import com.mogo.module.share.manager.ServiceApisManager;
import com.mogo.module.share.manager.UploadHelper;
import com.mogo.service.IMogoServiceApis;
import com.mogo.service.MogoServicePaths;
import com.mogo.service.analytics.IMogoAnalytics;
@@ -368,12 +369,7 @@ public class EntrancePresenter extends Presenter<EntranceView> {
*/
private void sendShareReceiver(String type) {
Logger.d("EntrancePresenter", "TanluCardViewFragment sendShareReceiver ---->");
Intent intent = new Intent();
intent.setAction("com.zhidao.roadcondition.share");
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
intent.putExtra("type", type);
getContext().sendBroadcast(intent);
UploadHelper.INSTANCE.upload(getContext(),type);
}
/**