When requested GET_ID command with empty id, return current theme info.
Change-Id: If479951e604f73ec5a2fc4c18d5e91cc881f9c9d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
switch (cmd) {
case dbus::Command::GET: {
std::string id = args.GetString(dbus::kCmdDataKey);
- std::shared_ptr<loader::ThemeInfo> themeinfo = proxy_->LoadTheme(id);
+ std::shared_ptr<loader::ThemeInfo> themeinfo;
+ if (id.empty())
+ themeinfo = proxy_->GetLoadedTheme();
+ else
+ themeinfo = proxy_->LoadTheme(id);
if (themeinfo == nullptr) {
b.Add(dbus::kCmdResultKey, "error");
return b;