完成设置页面
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user