Merge branch 'feature/v1.0.0' of gitlab.zhidaoauto.com:ecos/yycp-service/Launcher into feature/v1.0.0
This commit is contained in:
@@ -184,6 +184,10 @@ public class NaviClient implements IMogoNavi {
|
||||
return mMogoNaviConfig;
|
||||
}
|
||||
|
||||
@Override public boolean setBroadcastMode(int mode) {
|
||||
return mAMapNavi.setBroadcastMode(mode);
|
||||
}
|
||||
|
||||
// -- end
|
||||
|
||||
private boolean checkAMapNavi() {
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mogo.map.api" />
|
||||
package="com.mogo.map.api" >
|
||||
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
||||
</manifest>
|
||||
|
||||
@@ -104,7 +104,17 @@ public interface IMogoNavi {
|
||||
*/
|
||||
void setCalculatePathDisplayBounds( Rect bounds );
|
||||
|
||||
|
||||
/**
|
||||
* 导航配置
|
||||
* @return
|
||||
*/
|
||||
MogoNaviConfig getNaviConfig();
|
||||
|
||||
/**
|
||||
* 设置播报模式
|
||||
* @param mode
|
||||
* @return
|
||||
*/
|
||||
boolean setBroadcastMode(int mode);
|
||||
|
||||
}
|
||||
|
||||
@@ -142,4 +142,11 @@ public class MogoNavi implements IMogoNavi {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override public boolean setBroadcastMode(int mode) {
|
||||
if (mDelegate != null) {
|
||||
return mDelegate.setBroadcastMode(mode);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.mogo.map.constants;
|
||||
|
||||
/**
|
||||
* @author zyz
|
||||
* 2020-01-14.
|
||||
*/
|
||||
public class BroadcastMode {
|
||||
public static final int CONCISE = 1;
|
||||
public static final int DETAIL = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user