修复了地图气泡的更新线程为UI线程;

添加了日志收集;
This commit is contained in:
董宏宇
2020-02-05 18:46:47 +08:00
parent 18bd4cb2c1
commit ccd247f105
4 changed files with 23 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
package com.mogo.module.service;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import com.alibaba.android.arouter.launcher.ARouter;
@@ -98,11 +100,17 @@ public class MarkerServiceHandler {
}
@Override
public void onMsgReceived(MarkerResponse response) {
public void onMsgReceived(final MarkerResponse response) {
Logger.e(TAG, "======MarkerResponse" + response);
if (!getMogoStatusManager().isSearchUIShow() && !getMogoStatusManager().isV2XShow()) {
isFirstMarker = true;
drawMapMarker(response);
Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
@Override
public void run() {
drawMapMarker(response);
}
});
}
}
});