add navigation to default gadgets
authorYurii Zinchuk/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <y.zinchuk@samsung.com>
Thu, 7 Sep 2023 09:10:26 +0000 (11:10 +0200)
committerPiotr Czaja/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <p.czaja@samsung.com>
Wed, 13 Sep 2023 15:42:52 +0000 (17:42 +0200)
SettingMainGadget/SettingMainGadget/Apps/AppsDefaultGadget.cs
SettingMainGadget/SettingMainGadget/AppsGadget.cs
SettingMainGadget/SettingMainGadget/MainMenuProvider.cs

index 45736338f1e73045af5f545443452bc7c61d2dea..f720d63a8a28cd12482ab89ec81fec3c96e5c98b 100644 (file)
@@ -1,7 +1,10 @@
 using SettingCore;
 using SettingCore.Views;
+using SettingMainGadget;
 using SettingMainGadget.Apps;
 using SettingMainGadget.TextResources;
+using System;
+using System.Collections.Generic;
 using System.Linq;
 using Tizen;
 using Tizen.Applications;
@@ -69,7 +72,7 @@ namespace Setting.Menu.Apps
                 {
                     homeScreenItem.Clicked += (o, e) =>
                     {
-
+                        NavigateTo(MainMenuProvider.Apps_DefaultHome);
                     };
                 }
 
index 2645249577718144523c430147c6f1d7f720c47e..a23e4456a5b4ef9605bd15c7ddd31e29ae521540 100644 (file)
@@ -59,7 +59,7 @@ namespace Setting.Menu
             sections.Add(MainMenuProvider.Apps_DefaultApps, defaultAppsItem);
             defaultAppsItem.Clicked += (o, e) =>
             {
-                // TODO : NavigateTo Default apps
+                NavigateTo(MainMenuProvider.Apps_DefaultApps);
             };
             content.Add(defaultAppsItem);
         }
index 59ea94ef5159e0dfa4db4426333a70a742883e2a..a07efdd0f12e4669bee93283d54ac366eb74c671 100644 (file)
@@ -52,6 +52,7 @@ namespace SettingMainGadget
         public static string Apps = "Apps";
         public static string Apps_AppsManager = "Apps.AppsManager";
         public static string Apps_DefaultApps = "Apps.DefaultApps";
+        public static string Apps_DefaultHome = "Apps.DefaultHome";
 
         //storage
         public static string Storage = "Storage";
@@ -128,7 +129,9 @@ namespace SettingMainGadget
                 // apps
                 new SettingMenu(path: Apps, defaultOrder: 80, type: typeof(Setting.Menu.AppsGadget)),
                 new SettingMenu(path: Apps_AppsManager, defaultOrder: 10, typeof(Setting.Menu.Apps.AppsManagerGadget)),
-                new SettingMenu(path: Apps_DefaultApps, defaultOrder: 20),
+                new SettingMenu(path: Apps_DefaultApps, defaultOrder: 20, typeof(Setting.Menu.Apps.AppsDefaultGadget)),
+                new SettingMenu(path: Apps_DefaultHome, defaultOrder: 40, typeof(Setting.Menu.Apps.AppsDefaultHomeGadget)),
+
                 //storage
                 new SettingMenu(path: Storage, defaultOrder: 120, type: typeof(Setting.Menu.StorageGadget)),
                 new SettingMenu(path: Storage_InternalUsage, defaultOrder: 10),