返回,退出

This commit is contained in:
zhangyuanzhen
2020-03-19 17:00:15 +08:00
parent 513c5ab7d8
commit a2a2c1b5e1
3 changed files with 43 additions and 10 deletions

View File

@@ -177,9 +177,7 @@ public class SearchFragment extends BaseSearchFragment
}
});
AIAssist.getInstance(getContext())
.registerUnWakeupCommand(BACK_CMD, new String[] { "关闭", "返回" }, this);
registerVoidCmd();
registerVoidCmd();
}
private void goResult(MogoTip tag) {
@@ -217,7 +215,6 @@ public class SearchFragment extends BaseSearchFragment
private static final String WASH_CMD = "wash";
private static final String NAVI_SETTING_CMD = "setting";
private static final String CLEAN_CMD = "clean";
private static final String BACK_CMD = "back";
private void registerVoidCmd() {
@@ -522,7 +519,6 @@ public class SearchFragment extends BaseSearchFragment
SearchServiceHolder.INSTANCE.getMapUIController().showMyLocation(true);
moveMapToRight();
unRegisterVoice();
AIAssist.getInstance(getContext()).unregisterUnWakeupCommand(BACK_CMD);
}
private void unRegisterVoice() {
@@ -598,9 +594,7 @@ public class SearchFragment extends BaseSearchFragment
new String[] { "确定","立即清空" }, new String[] { "取消" }, this);
break;
case BACK_CMD:
SearchServiceHolder.INSTANCE.getFragmentManager().clearAll();
break;
case GAS_CMD:
goCategory(getString(R.string.navi_gas));