aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/chromecontroller.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-12-29 17:36:25 -0500
committerScott Murray <scott.murray@konsulko.com>2019-12-29 18:05:09 -0500
commitb57a3197dad42bdd7a72266aaa160341573b0627 (patch)
tree9c93f21d65d3fbac75693d5fa01afa4cd10b5ccd /homescreen/src/chromecontroller.cpp
parent7dcc687d179c645f4ccf7fffdb507e18b8d562c4 (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: I4bacad2e3906ee1e8221ed3e6bfe92b340d65aab
Diffstat (limited to 'homescreen/src/chromecontroller.cpp')
-rw-r--r--homescreen/src/chromecontroller.cpp5
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;
}
}