set voice touch app window priority to alert high at common profile 34/283034/1
authorulgal-park <ulgal.park@samsung.com>
Mon, 26 Sep 2022 08:26:34 +0000 (17:26 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Mon, 17 Oct 2022 04:35:20 +0000 (13:35 +0900)
Change-Id: I856f551ded1717fb3eb2f289299f54065227c000

packaging/org.tizen.voice-touch-1.0.0.tpk
voice-touch/VoiceTouch.cs
voice-touch/tizen-manifest.xml

index f558cbe3a13051c9089562993f64795f13b67379..e787b4996f8de5789663eb25c2fc2232c57d293f 100644 (file)
Binary files a/packaging/org.tizen.voice-touch-1.0.0.tpk and b/packaging/org.tizen.voice-touch-1.0.0.tpk differ
index 38f42fd523f1df7c6e5f4200999bff4cf138c222..2f2d68777a03dbe272d3a886d90a41ffe2db8588 100644 (file)
@@ -21,6 +21,8 @@ using Tizen.Applications;
 using Tizen.NUI;
 using Tizen.NUI.BaseComponents;
 using Tizen.NUI.Components;
+using Tizen.NUI.WindowSystem.Shell;
+using Tizen.System;
 using VoiceTouch.VoiceTouchMmi;
 using static VoiceTouch.VoiceTouchMmi.VoiceTouchMmiManager;
 
@@ -40,12 +42,31 @@ namespace VoiceTouch
 
             Window window = Window.Instance;
             window.Type = WindowType.Notification;
-            window.SetNotificationLevel(NotificationLevel.Top);
+
             window.SetTransparency(true);
             window.BackgroundColor = Color.Transparent;
             window.SetAcceptFocus(false);
             window.SetInputRegion(new Rectangle(0, 0, 0, 0));
 
+            string profileInfo = null;
+            Information.TryGetValue("http://tizen.org/feature/profile", out profileInfo);
+
+            Tizen.Log.Debug(LogTag, "profile Info is " + profileInfo);
+
+            switch (profileInfo)
+            {
+                case "common":
+                    {
+                        TizenShell tzShell = new TizenShell();
+                        SoftkeyService softkeyService = new SoftkeyService(tzShell, window);
+                        softkeyService.Show();
+                    }
+                    break;
+                default:
+                    window.SetNotificationLevel(NotificationLevel.Top);
+                    break;
+            }
+
             mVoiceTouchMmiManager = VoiceTouchMmiManager.Instance;
             mVtObject = new VoiceTouchEventManager();
             mVoiceTouchViewManager = VoiceTouchViewManager.Instance;
index 5678b1d9a467e4d298980cfeafe0ea2166a86801..29bb676c30110cb5a1886db8903b4c0f5dbb27df 100644 (file)
@@ -10,5 +10,6 @@
   <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
   <privilege>http://tizen.org/privilege/datasharing</privilege>
   <privilege>http://tizen.org/privilege/window.priority.set</privilege>
+  <privilege>http://tizen.org/privilege/windowsystem.admin</privilege>
 </privileges>
 </manifest>