diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-07-30 17:40:21 +0900 |
---|---|---|
committer | Zheng Wenlong <wenlong_zheng@nexty-ele.com> | 2018-07-31 09:30:36 +0000 |
commit | 69d5406160655c6b74ef2bd25a5d2ef31bea5c1f (patch) | |
tree | e60fb1002ce15b167959cdfa4fc858fbdbeba1d7 | |
parent | 5bf038936a9759cc1634a18efd946ce5ecf10660 (diff) |
Change hide icon source with contains
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>
-rw-r--r-- | launcher/src/applicationmodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/src/applicationmodel.cpp b/launcher/src/applicationmodel.cpp index 90f81de..17e38fb 100644 --- a/launcher/src/applicationmodel.cpp +++ b/launcher/src/applicationmodel.cpp @@ -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)); } |