fix bug and circle dependence problem
This commit is contained in:
@@ -68,7 +68,9 @@ public abstract class AbsMogoApplication extends Application {
|
||||
aMapNaviView.onCreate(null);
|
||||
sApp = this;
|
||||
initARouter();
|
||||
init();
|
||||
if ( shouldInit() ) {
|
||||
init();
|
||||
}
|
||||
}
|
||||
|
||||
private void initARouter() {
|
||||
@@ -80,6 +82,10 @@ public abstract class AbsMogoApplication extends Application {
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean shouldInit() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void init() {
|
||||
if (sApis == null) {
|
||||
sApis = MogoHttpDnsHandler.getHttpDnsApi();
|
||||
|
||||
Reference in New Issue
Block a user