diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-12-29 17:36:25 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-12-29 17:41:28 -0500 |
commit | 89819aff7d6efae2b5b0beb5f84b492c3916ddd5 (patch) | |
tree | 33ecc249cf6eec51edc9f7c09e85522b78358612 /homescreen/src/chromecontroller.cpp | |
parent | d20756bac5c424c8f40c0292395d5a25029f15c3 (diff) |
Display Alexa specific chrome when it is used
Add logic to key off the voiceagent name and display Alexa specific
chrome (the required Alexa icon) when it is used.
Bug-AGL: SPEC-3075
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Iaebfc0a79a3032a03935d7bf6f97609e6a31dd64
Diffstat (limited to 'homescreen/src/chromecontroller.cpp')
-rw-r--r-- | homescreen/src/chromecontroller.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/homescreen/src/chromecontroller.cpp b/homescreen/src/chromecontroller.cpp index b604dae..34895bf 100644 --- a/homescreen/src/chromecontroller.cpp +++ b/homescreen/src/chromecontroller.cpp @@ -64,6 +64,11 @@ ChromeController::ChromeController(const QUrl &bindingUrl, QObject *parent) : continue; if (agentId.compare(agentIt.value().toString()) == 0) { agentFound = true; + auto nameIt = agentObj.find(vshl::NAME_TAG); + if (nameIt != agentObj.constEnd()) { + m_voiceAgentName = nameIt.value().toString(); + emit agentNameChanged(); + } break; } } |