diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-05-11 10:09:24 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-05-11 10:09:24 +0900 |
commit | f73c5f5ff5cd4b424eed1a757c7bc8d3e34ec0e9 (patch) | |
tree | 62c2f6b9c18133d53c06866615b45a583020ba03 /src/app.cpp | |
parent | 491ad429c154af15256791c42cff83ce39cb2006 (diff) |
The role "video" can be shown in split area for ALS
and the role "restriction" can use the areas other than "restriction.split.sub"
Change-Id: I5aab163409cf5284b876dc9e44102ee620344472
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/app.cpp b/src/app.cpp index 0242240..07aab0b 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -287,21 +287,26 @@ void App::allocateWindowResource(char const *event, char const *drawing_name, // This process will be removed // because the area "normal.full" and "normalfull" will be prohibited { - if (nullptr == drawing_area) { - new_area = "normal"; - } - else if (0 == strcmp("normal.full", drawing_area)) { - new_area = "normal"; - } - else if (0 == strcmp("restriction.split.sub", drawing_area)) { - new_area = "restriction.split.sub"; - } - else if (0 == strcmp("homescreen", new_role)) { - // Now homescreen specifies "normalfull" - new_area = "full"; + if (0 == strcmp("Restriction", drawing_name)) { + new_area = drawing_area; } else { - new_area = "normal"; + if (nullptr == drawing_area) { + new_area = "normal"; + } + else if (0 == strcmp("normal.full", drawing_area)) { + new_area = "normal"; + } + else if (0 == strcmp("restriction.split.sub", drawing_area)) { + new_area = "restriction.split.sub"; + } + else if (0 == strcmp("homescreen", new_role)) { + // Now homescreen specifies "normalfull" + new_area = "full"; + } + else { + new_area = "normal"; + } } HMI_DEBUG("wm", "drawing_area:%s, new_area: %s", drawing_area, new_area); } |