完成设置页面
This commit is contained in:
@@ -180,7 +180,8 @@ public class NaviClient implements IMogoNavi {
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void updateNaviConfig() {
|
||||
@Override public MogoNaviConfig getNaviConfig() {
|
||||
return mMogoNaviConfig;
|
||||
}
|
||||
|
||||
// -- end
|
||||
|
||||
@@ -105,6 +105,6 @@ public interface IMogoNavi {
|
||||
void setCalculatePathDisplayBounds( Rect bounds );
|
||||
|
||||
|
||||
void updateNaviConfig();
|
||||
MogoNaviConfig getNaviConfig();
|
||||
|
||||
}
|
||||
|
||||
@@ -46,7 +46,9 @@ public class MogoNaviConfig {
|
||||
*/
|
||||
public MogoNaviConfig avoidSpeed( boolean avoidSpeed ) {
|
||||
this.avoidSpeed = avoidSpeed;
|
||||
this.highSpeed = false;
|
||||
if (avoidSpeed) {
|
||||
this.highSpeed = false;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -55,7 +57,9 @@ public class MogoNaviConfig {
|
||||
*/
|
||||
public MogoNaviConfig cost( boolean cost ) {
|
||||
this.cost = cost;
|
||||
this.highSpeed = false;
|
||||
if (cost) {
|
||||
this.highSpeed = false;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -64,8 +68,10 @@ public class MogoNaviConfig {
|
||||
*/
|
||||
public MogoNaviConfig highSpeed( boolean highSpeed ) {
|
||||
this.highSpeed = highSpeed;
|
||||
this.avoidSpeed = false;
|
||||
this.cost = false;
|
||||
if (highSpeed) {
|
||||
this.avoidSpeed = false;
|
||||
this.cost = false;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -136,9 +136,10 @@ public class MogoNavi implements IMogoNavi {
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void updateNaviConfig() {
|
||||
@Override public MogoNaviConfig getNaviConfig() {
|
||||
if (mDelegate != null) {
|
||||
mDelegate.updateNaviConfig();
|
||||
return mDelegate.getNaviConfig();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user