From dbaae4292a779b67233f204750438a049509b398 Mon Sep 17 00:00:00 2001 From: "allu.k" Date: Thu, 23 Jul 2020 17:54:50 +0530 Subject: [PATCH] [TIZENIOT-1691] Updated the Initial Location of Apps Change-Id: I48185512a9266253670da0f2c9563bbc96eeaaea --- src/apps_data.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/apps_data.c b/src/apps_data.c index 8e686ef..b10aec5 100644 --- a/src/apps_data.c +++ b/src/apps_data.c @@ -58,6 +58,27 @@ void apps_data_init(void *data, Ecore_Thread *th) apps_db_get_app_list(&db_list); } EINA_LIST_FOREACH(pkg_list, pkg_find_list, pkg_item) { + if(eina_list_count(db_list)==0){ + if (!strcmp(pkg_item->app_id, "org.tizen.music-player")){ + pkg_item->position=0; + pkg_item->parent_db_id=APPS_ROOT; + }else if(!strcmp(pkg_item->app_id, "org.tizen.gallery")){ + pkg_item->position=1; + pkg_item->parent_db_id=APPS_ROOT; + }else if(!strcmp(pkg_item->app_id, "org.tizen.videos")){ + pkg_item->position=2; + pkg_item->parent_db_id=APPS_ROOT; + }else if(!strcmp(pkg_item->app_id, "org.tizen.font-viewer")){ + pkg_item->position=3; + pkg_item->parent_db_id=APPS_ROOT; + }else if(!strcmp(pkg_item->app_id, "org.tizen.setting")){ + pkg_item->position=4; + pkg_item->parent_db_id=APPS_ROOT; + }else{ + pkg_item->position=100; + pkg_item->parent_db_id=APPS_ROOT; + } + } EINA_LIST_FOREACH(db_list, db_find_list, db_item) { if (!strcmp(pkg_item->app_id, db_item->app_id) && !strcmp(pkg_item->owner, db_item->owner)) { pkg_item->db_id = db_item->db_id; -- 2.7.4