将自动进入鹰眼模式的时间进行延时,避免和初始化的设置冲突

This commit is contained in:
wangcongtao
2020-12-30 17:59:03 +08:00
parent b5fed2b398
commit eb3fd2eea8

View File

@@ -698,7 +698,10 @@ public class AMapViewWrapper implements IMogoMapView,
NaviClient.getInstance( getContext() ).syncCarLocation( sysLocation );
if ( checkAMapView() ) {
MapStyleController.getInstance().onLocationChanged( location, this );
// 避免设置之后被其他初始化给重置为其他模式
UiThreadHandler.postDelayed( () -> {
MapStyleController.getInstance().onLocationChanged( location, this );
}, 5_000L );
}
}