Change hide icon source with contains 59/15859/3
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>
Mon, 30 Jul 2018 08:40:21 +0000 (17:40 +0900)
committerZheng Wenlong <wenlong_zheng@nexty-ele.com>
Tue, 31 Jul 2018 09:30:36 +0000 (09:30 +0000)
    If homescreen repo use homescreen without "-2017",
    Launcher need hide icon for homescreen or "-2017".
    So change the code compare with application id.

Change-Id: If1d33ea1718909626b1a04f128ee9b385bc2d447
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
launcher/src/applicationmodel.cpp

index 90f81de..17e38fb 100644 (file)
@@ -60,8 +60,10 @@ ApplicationModel::Private::Private()
         auto const id = jso["id"].toString();
         auto const icon = get_icon_name(jso);
 
-        // Hide HomeScreen icon itself
-        if (name != "launcher" && name != "homescreen-2017" && name != "OnScreenApp") {
+        if ( name != "launcher" &&
+             name != "homescreen-2017" &&
+             name != "homescreen" &&
+             name != "OnScreenApp") {
             this->data.append(AppInfo(icon, name, id));
         }