aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-03-12 19:46:18 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-03-12 19:46:18 +0900
commit2b5380d07c8c65471866636efed111956a548462 (patch)
tree92463a6bd838f5eef0e57a5a7adfc508fe61e42d
parent4667d93a852d66a57a2d7d26957c3aab6845756e (diff)
modify with screenupdatedsandbox/zheng_wenlong/screenupdated
-rw-r--r--homescreen/src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 8ecfd68..068c500 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -109,13 +109,17 @@ int main(int argc, char *argv[])
});
layoutHandler->set_event_handler(QLibWindowmanager::Event_ScreenUpdated, [layoutHandler, launcher](json_object *object) {
+ QString eventStr = json_object_get_string(object);
+ HMI_DEBUG("HomeScreen","Event_ScreenUpdated message: %s.", eventStr.toStdString().c_str());
json_object *jarray = json_object_object_get(object, "ids");
int arrLen = json_object_array_length(jarray);
for( int idx = 0; idx < arrLen; idx++)
{
QString label = QString(json_object_get_string( json_object_array_get_idx(jarray, idx) ));
- HMI_DEBUG("HomeScreen","Event_ScreenUpdated application: %s.", label.toStdString().c_str());
- QMetaObject::invokeMethod(launcher, "setCurrent", Qt::QueuedConnection, Q_ARG(QString, label));
+ if (label != graphic_role){
+ HMI_DEBUG("HomeScreen","Event_ScreenUpdated application: %s.", label.toStdString().c_str());
+ QMetaObject::invokeMethod(launcher, "setCurrent", Qt::QueuedConnection, Q_ARG(QString, label));
+ }
}
});