clear curren result and change showing result at NO_CLICKABLE_OBJECTS error 99/283099/1
authorulgal-park <ulgal.park@samsung.com>
Mon, 17 Oct 2022 11:11:54 +0000 (20:11 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 18 Oct 2022 05:37:59 +0000 (14:37 +0900)
Change-Id: Ic57d6434df32097e49471d7565eadae5b26f4b65

voice-touch/VoiceTouchEventManager.cs

index 20a853181b1731fc437b99f247d2efe1bf107580..a3b0ff5a3eaff43af080b7a8d8897ae672e2ec93 100644 (file)
@@ -37,6 +37,8 @@ namespace VoiceTouch
         public const string ERROR = "error";
         public const string TURN_OFF_REQUEST = "turnOffRequest";
 
+        public const string MMI_REASON_NO_CLICKABLE_OBJECTS = "noClickableObjects";
+
         public string previousTooltipType = "None";
 
         protected VoiceTouchViewManager mVoiceTouchViewManager = VoiceTouchViewManager.Instance;
@@ -85,7 +87,10 @@ namespace VoiceTouch
                         mVoiceTouchViewManager.ShowResponse("Sorry, I don't know how to help with that. Let's try again.");
                         return;
                     case ERROR:
-                        mVoiceTouchViewManager.ShowAsrFinalResult(voiceTouchResult.error.reason);
+                        if (voiceTouchResult.error.reason == MMI_REASON_NO_CLICKABLE_OBJECTS) {
+                            mVoiceTouchViewManager.ShowAsrFinalResult(voiceTouchResult.error.reason);
+                            mVoiceTouchViewManager.ClearCurrentResults();
+                        }
                         return;
                     case TURN_OFF_REQUEST:
                         NUIApplication.Current.Exit();