bugfix: UI-881
This commit is contained in:
@@ -63,8 +63,6 @@ public class MarkerServiceHandler {
|
|||||||
private static ICarsChattingProvider sCarChatting;
|
private static ICarsChattingProvider sCarChatting;
|
||||||
private static IMogoGpsSimulatorManager sGpsSimulatorManager;
|
private static IMogoGpsSimulatorManager sGpsSimulatorManager;
|
||||||
|
|
||||||
private static MapMarkerManager sMapMarkerManager;
|
|
||||||
|
|
||||||
public static synchronized void init( final Context context ) {
|
public static synchronized void init( final Context context ) {
|
||||||
|
|
||||||
if ( sGpsSimulatorManager != null ) {
|
if ( sGpsSimulatorManager != null ) {
|
||||||
@@ -92,8 +90,7 @@ public class MarkerServiceHandler {
|
|||||||
|
|
||||||
sCarChatting = ( ICarsChattingProvider ) ARouter.getInstance().build( CallChattingProviderConstant.CAR_CALL_PROVIDER ).navigation( context );
|
sCarChatting = ( ICarsChattingProvider ) ARouter.getInstance().build( CallChattingProviderConstant.CAR_CALL_PROVIDER ).navigation( context );
|
||||||
|
|
||||||
sMapMarkerManager = MapMarkerManager.getInstance();
|
MapMarkerManager.getInstance().init( context );
|
||||||
sMapMarkerManager.init( context );
|
|
||||||
|
|
||||||
sGpsSimulatorManager = ARouter.getInstance().navigation( IMogoGpsSimulatorManager.class );
|
sGpsSimulatorManager = ARouter.getInstance().navigation( IMogoGpsSimulatorManager.class );
|
||||||
}
|
}
|
||||||
@@ -143,7 +140,7 @@ public class MarkerServiceHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static MapMarkerManager getMapMarkerManager() {
|
public static MapMarkerManager getMapMarkerManager() {
|
||||||
return sMapMarkerManager;
|
return MapMarkerManager.getInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IMogoRegisterCenter getRegisterCenter() {
|
public static IMogoRegisterCenter getRegisterCenter() {
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
|||||||
private Rect mMarkerDisplayBounds;
|
private Rect mMarkerDisplayBounds;
|
||||||
|
|
||||||
private MapMarkerManager() {
|
private MapMarkerManager() {
|
||||||
|
mContext = AbsMogoApplication.getApp();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static synchronized MapMarkerManager getInstance() {
|
public static synchronized MapMarkerManager getInstance() {
|
||||||
@@ -95,7 +96,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
|||||||
* @param context
|
* @param context
|
||||||
*/
|
*/
|
||||||
public void init( Context context ) {
|
public void init( Context context ) {
|
||||||
mContext = context;
|
|
||||||
mRefreshModel = new RefreshModel( mContext );
|
mRefreshModel = new RefreshModel( mContext );
|
||||||
|
|
||||||
// 长连接
|
// 长连接
|
||||||
|
|||||||
Reference in New Issue
Block a user