summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyojung Jo <hj903.jo@samsung.com>2015-04-09 11:36:38 +0900
committerHyojung Jo <hj903.jo@samsung.com>2015-04-09 14:57:10 +0900
commitc8160c9a7273241bfbd6a03133f8d9cc2f30e781 (patch)
treeaec9892062e22c2f91e5dd6a870feb683dbb9809
parent16465cf350a55f6e44123fa8d9b2a67675a15ea6 (diff)
downloadapplauncher-c8160c9a7273241bfbd6a03133f8d9cc2f30e781.tar.gz
applauncher-c8160c9a7273241bfbd6a03133f8d9cc2f30e781.tar.bz2
applauncher-c8160c9a7273241bfbd6a03133f8d9cc2f30e781.zip
Deleted unnecessary filtering app id string
Change-Id: I30c2d08225eaf66fd6e48621710749340b4f0564 Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
-rw-r--r--include/define.h1
-rw-r--r--src/layout/AppsBaseLayout.cpp8
-rw-r--r--src/menudef.cpp15
3 files changed, 7 insertions, 17 deletions
diff --git a/include/define.h b/include/define.h
index d8ea7ac..d26416a 100644
--- a/include/define.h
+++ b/include/define.h
@@ -134,7 +134,6 @@
#define STR_APPS "APPS"
#define STR_WEB "WEBSITE"
#define STR_FAV "FAVORITE"
-#define STR_PIN "PIN"
#define RGB_APPS 71 210 188
#define RGBA_BLACK_BG 0 0 0 (255*0.9)
diff --git a/src/layout/AppsBaseLayout.cpp b/src/layout/AppsBaseLayout.cpp
index 6e188cd..20fa6c8 100644
--- a/src/layout/AppsBaseLayout.cpp
+++ b/src/layout/AppsBaseLayout.cpp
@@ -378,9 +378,9 @@ int CAppsBaseLayout::sm_CbAppList(pkgmgrinfo_appinfo_h handle, void *data)
pkgmgrinfo_pkginfo_h pph;
char *name, *icon, *pkgid, *appid, *version;
const char *szCategoryId = NULL;
- int i;
bool nodisplay, result;
CAppContent *get;
+ int i = 0;
_CREATE_BEGIN {
_CHECK(m->eoTable)
@@ -392,10 +392,10 @@ int CAppsBaseLayout::sm_CbAppList(pkgmgrinfo_appinfo_h handle, void *data)
_CHECK(pkgmgrinfo_appinfo_get_appid(handle, &appid) == PMINFO_R_OK)
_CHECK(appid)
_COMMAND {
- /* FIXME: This part is for filtering apps. */
- for (i = 0; str_excluded_app[i]; i++) {
+ while (str_excluded_app[i]) {
if (!strcmp(appid, str_excluded_app[i]))
- return -1;
+ return 0;
+ i++;
}
}
_CHECK(pkgmgrinfo_appinfo_get_pkgid(handle, &pkgid) == PMINFO_R_OK)
diff --git a/src/menudef.cpp b/src/menudef.cpp
index 478222b..ca37727 100644
--- a/src/menudef.cpp
+++ b/src/menudef.cpp
@@ -73,18 +73,9 @@ const char *str_ctxt_menu_btn_img[] = {
};
const char *str_excluded_app[] = {
- "org.tizen.applauncher-tv-ref"
- "org.tizen.factory",
- "org.tizen.AVControl",
- "org.tizen.NetworkSetting-Tizen",
- "org.tizen.netflix-app",
- "menu-motion-env-check",
- "org.tizen.SmartRC",
- "20130917002.Dracula_S_Coffin",
- "org.tizen.channel-search",
- "org.tizen.tv.swu",
- "org.tizen.tv.swu-update-details",
- "org.tizen.setting",
+ "org.tizen.app-launcher-tv-ref",
+ "org.tizen.setup-wizard-tv-ref",
+ "org.tizen.wizard-tv-ref",
NULL
};