剩余的语音指令
This commit is contained in:
@@ -101,7 +101,38 @@ public class MapPresenter extends Presenter<MapView> implements
|
||||
if (extra_endurance_data) {
|
||||
mView.getUIController().recoverLockMode();
|
||||
}
|
||||
} else if (key_type == 10006) {
|
||||
|
||||
int extra_is_show = intent.getIntExtra("EXTRA_IS_SHOW", 0);
|
||||
|
||||
if (extra_is_show == 0) {
|
||||
mView.getUIController().displayOverview();
|
||||
} else {
|
||||
mView.getUIController().recoverLockMode();
|
||||
}
|
||||
}else if (key_type == 10005){
|
||||
int navi_route_prefer = intent.getIntExtra("NAVI_ROUTE_PREFER", type);
|
||||
|
||||
|
||||
}
|
||||
|
||||
///**
|
||||
// * 仅在导航场景下,⽀持第三⽅进⾏路线偏好的重新选择。
|
||||
// * `避免收费` |`1` `多策略算路` |`2` `不走高速` |`3` ` 躲避拥堵` |`4` `不走高速且避免收费` |`5` `不走高速且躲避拥堵` |`6`
|
||||
// * `躲避收费和拥堵` |`7` `不走高速躲避收费和拥堵` |`8` `高速优先` |`20` `躲避拥堵且高速优先` |`24`
|
||||
// *
|
||||
// * @param context
|
||||
// * @param type
|
||||
// */
|
||||
//public static void setUserPreference(Context context, int type) {
|
||||
// Intent intent = new Intent();
|
||||
// intent.setAction("AUTONAVI_STANDARD_BROADCAST_RECV");
|
||||
// intent.putExtra("KEY_TYPE", 10005);
|
||||
// intent.putExtra("NAVI_ROUTE_PREFER", type);
|
||||
// context.sendBroadcast(intent);
|
||||
//}
|
||||
//
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user