bugfix
This commit is contained in:
@@ -22,7 +22,7 @@ public class MapCenterPointStrategy {
|
||||
|
||||
public static final MapCenterPoint DEFAULT = new MapCenterPoint( 0.677734D, 0.5733333D );
|
||||
|
||||
static {
|
||||
public static void init() {
|
||||
// 普通场景,使用高德内部值
|
||||
{
|
||||
Map< Integer, MapCenterPoint > common = new HashMap<>();
|
||||
|
||||
@@ -135,16 +135,18 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme
|
||||
|
||||
EventDispatchCenter.getInstance().setMapLoadedCallback( () -> {
|
||||
Logger.d( TAG, "map loaded." + Thread.currentThread().getName() );
|
||||
|
||||
// 右移地图中心点
|
||||
mMogoMapUIController = mMogoMapService.getMapUIController();
|
||||
MapCenterPointStrategy.init();
|
||||
MapCenterPointStrategy.setMapCenterPointByScene( mMogoMapUIController, Scene.AIMLESS );
|
||||
|
||||
// 加载地图,触发地图加载完毕回调,在初始化其他卡片模块,保证卡片模块可以正确获取地图相关服务。
|
||||
addModule();
|
||||
loadContainerModules();
|
||||
MogoModulesManager.getInstance().loadModules();
|
||||
mPresenter.delayOperations();
|
||||
|
||||
// 右移地图中心点
|
||||
mMogoMapUIController = mMogoMapService.getMapUIController();
|
||||
MapCenterPointStrategy.setMapCenterPointByScene( mMogoMapUIController, Scene.AIMLESS );
|
||||
|
||||
// 启动一些基本的服务:定位等
|
||||
startBaseService();
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ object AddressManager {
|
||||
fun init(context: Context) {
|
||||
|
||||
poiDao = AppDataBase.getDatabase(context).poiDao()
|
||||
WorkThreadHandler.getInstance().post {
|
||||
WorkThreadHandler.getInstance().postDelayed({
|
||||
try {
|
||||
var zdCompany = SearchApisHolder.getPersonalInfoManager().company
|
||||
companyAddress = EntityConvertUtils.zd2Mogo(zdCompany, DataConstants.TYPE_COMPANY_ADDRESS)
|
||||
@@ -53,7 +53,7 @@ object AddressManager {
|
||||
} catch (e: Exception) {
|
||||
Logger.d(TAG, Log.getStackTraceString(e))
|
||||
}
|
||||
}
|
||||
}, 1000)
|
||||
|
||||
SearchApisHolder.getPersonalInfoManager().addListener(object : PersonalInfoManager.InfoListener {
|
||||
override fun onCompanyChanged(company: ZDPoi?) {
|
||||
|
||||
Reference in New Issue
Block a user