剩余的语音指令
This commit is contained in:
@@ -263,7 +263,7 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent
|
||||
if ( isLock ) {
|
||||
mExitNavi.setText( R.string.module_ext_str_exit_navi );
|
||||
} else {
|
||||
mExitNavi.setText( R.string.module_ext_str_continue_navi );
|
||||
mExitNavi.setText( R.string.module_ext_str_exit_path );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,4 +19,5 @@
|
||||
<string name="module_map_str_upload_road_condition">分享</string>
|
||||
<string name="module_ext_str_exit_navi">退出导航</string>
|
||||
<string name="module_ext_str_continue_navi">继续导航</string>
|
||||
<string name="module_ext_str_exit_path">退出全览</string>
|
||||
</resources>
|
||||
|
||||
@@ -38,8 +38,8 @@ public class MapBroadCastHelper {
|
||||
Intent intent = new Intent(ACTION_NAV_SEND);
|
||||
intent.putExtra("KEY_TYPE", 10001);
|
||||
intent.putExtra("NEXT_ROAD_NAME", naviinfo.getNextRoadName());
|
||||
intent.putExtra("ROUTE_REMAIN_TIME", naviinfo.getPathRetainTime());
|
||||
intent.putExtra("ROUTE_REMAIN_DIS", naviinfo.getPathRetainDistance());
|
||||
intent.putExtra("ROUTE_REMAIN_TIME_AUTO", naviinfo.getVoiceRetainTime());
|
||||
intent.putExtra("ROUTE_REMAIN_DIS_AUTO", naviinfo.getVoiceRetainDistance());
|
||||
intent.putExtra("ICON", naviinfo.getIconResId());
|
||||
context.sendBroadcast(intent);
|
||||
Log.v("MapBroadCastHelper","action="+ACTION_NAV_SEND+"NaviInfo");
|
||||
|
||||
@@ -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);
|
||||
//}
|
||||
//
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.mogo.module.navi.ui.search
|
||||
|
||||
import android.app.Service
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.fragment.app.Fragment
|
||||
@@ -103,6 +104,7 @@ class ChoosePathFragment : BaseFragment(), IMogoNaviListener {
|
||||
tv_navi_navi.setOnClickListener {
|
||||
SearchServiceHolder.getNavi()
|
||||
.startNavi(false)
|
||||
SearchServiceHolder.getMapUIController().recoverLockMode()
|
||||
isStartedNavi = true
|
||||
SearchServiceHolder.fragmentManager.clearAll()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user