diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-05 08:56:38 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-09 16:02:11 +0800 |
commit | fa01549aba442decaf7c6d5b655da2d15d1a32ed (patch) | |
tree | e1ca57568550540743304560cf57dfa55871ed60 /src/hs-config.cpp | |
parent | 868898485c76ad5b0140e6528ba04c08878ea3ce (diff) |
start launcher and lastmode after homescreen started
Change-Id: I7f6c6d74d5d5c1686dc216bcff3175281b3c1494
Diffstat (limited to 'src/hs-config.cpp')
-rw-r--r-- | src/hs-config.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hs-config.cpp b/src/hs-config.cpp index c0d6942..df45e42 100644 --- a/src/hs-config.cpp +++ b/src/hs-config.cpp @@ -25,6 +25,7 @@ const std::array<std::string, 3> HS_Config::keys_recover_type = { // based on const std::string HS_Config::lastmode_json = "lastmode.json"; const std::string HS_Config::key_appid = "appid"; const std::string HS_Config::key_visibility = "visibility"; +const std::string HS_Config::key_after = "after"; std::string HS_Config::root_dir = ""; /** @@ -145,6 +146,12 @@ std::vector<struct recover_app_info> HS_Config::getRecoverAppInfo(struct json_ob else { info.visibility = false; } + if(json_object_object_get_ex(info_obj, key_after.c_str(), &value_obj)) { + info.after = json_object_get_string(value_obj); + } + else { + info.after.clear(); + } v_app_info.push_back(info); } |