diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-19 15:35:52 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-19 15:35:52 +0900 |
commit | c5ff198995f6f50afcc2edf326f66e212f81ae49 (patch) | |
tree | abc10d4086ef06afbbbef71e4a27e5d8533c699c | |
parent | b98e130e1dbedf7064678a1da4ebfaa0544c99d2 (diff) |
fix restriction issuesandbox/zheng_wenlong/ces2019
-rw-r--r-- | src/libhomescreen.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libhomescreen.cpp b/src/libhomescreen.cpp index 9689863..153c131 100644 --- a/src/libhomescreen.cpp +++ b/src/libhomescreen.cpp @@ -600,7 +600,7 @@ void LibHomeScreen::on_event(void *closure, const char *event, struct afb_wsj1_m } if (strcasecmp(event_type, LibHomeScreen::event_list[0].c_str()) == 0) { - auto i = this->handlers.find(Event_TapShortcut); + auto i = this->handlers.find(Event_ShowWindow); if ( i != this->handlers.end() ) { i->second(json_data); } @@ -617,6 +617,18 @@ void LibHomeScreen::on_event(void *closure, const char *event, struct afb_wsj1_m i->second(json_data); } } + else if (strcasecmp(event_type, LibHomeScreen::event_list[3].c_str()) == 0) { + auto i = this->handlers.find(Event_AllocateRestriction); + if ( i != this->handlers.end() ) { + i->second(json_data); + } + } + else if (strcasecmp(event_type, LibHomeScreen::event_list[4].c_str()) == 0) { + auto i = this->handlers.find(Event_ReleaseRestriction); + if ( i != this->handlers.end() ) { + i->second(json_data); + } + } } /** |