aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-05-23 14:03:31 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2018-05-23 14:07:53 +0900
commit34f816e046204b3c957e5b98871d2e1a1636229b (patch)
treec4c05466903c7336cfb66060e2f2dfefb4ef835b
parentbd9da3d1c82b1638c2f14056e83d0906e31667e0 (diff)
Bugfix: Restriction app is displayed on Dashboard app when steping on foot brakesandbox/yuta-d/add_api_get_car_info
Change-Id: Ic4b2cd4769abf90c07d2c7e9c7961d3cae40202e Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
-rw-r--r--src/policy_manager/zipc/dummy_stm.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/policy_manager/zipc/dummy_stm.c b/src/policy_manager/zipc/dummy_stm.c
index 2e31712..cc3fe21 100644
--- a/src/policy_manager/zipc/dummy_stm.c
+++ b/src/policy_manager/zipc/dummy_stm.c
@@ -465,8 +465,10 @@ int stmTransitionState(int event, stm_state_t* state) {
case STM_ARA_NO_RESTRICTION_NORMAL:
switch (restriction_state) {
case gStmLayoutNoNone:
- g_crr_state.layer.restriction.state = gStmLayoutNoRestriction;
- g_crr_state.layer.restriction.is_changed = STM_TRUE;
+ if (g_crr_state.layer.apps.state == gStmLayoutNoS1) {
+ g_crr_state.layer.restriction.state = gStmLayoutNoRestriction;
+ g_crr_state.layer.restriction.is_changed = STM_TRUE;
+ }
break;
default:
// nop
@@ -487,8 +489,10 @@ int stmTransitionState(int event, stm_state_t* state) {
case STM_ARA_NO_RESTRICTION_SPLIT_SUB:
switch (restriction_state) {
case gStmLayoutNoNone:
- g_crr_state.layer.restriction.state = gStmLayoutNoRestrictionSplitSub;
- g_crr_state.layer.restriction.is_changed = STM_TRUE;
+ if (g_crr_state.layer.apps.state == gStmLayoutNoM2) {
+ g_crr_state.layer.restriction.state = gStmLayoutNoRestrictionSplitSub;
+ g_crr_state.layer.restriction.is_changed = STM_TRUE;
+ }
break;
default:
// nop