完成设置页面

This commit is contained in:
zhangyuanzhen
2020-01-12 17:45:31 +08:00
parent 612be92dae
commit ef8e4979d3
10 changed files with 317 additions and 57 deletions

View File

@@ -105,6 +105,6 @@ public interface IMogoNavi {
void setCalculatePathDisplayBounds( Rect bounds );
void updateNaviConfig();
MogoNaviConfig getNaviConfig();
}

View File

@@ -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;
}