aboutsummaryrefslogtreecommitdiffstats
path: root/src/policy_manager
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:03:31 +0900
commit0d392f3b85a4c6c1ffd050b92d77734ff6a24b74 (patch)
treef0e176612002bf14c63d1ee948cef608dcd6fcaa /src/policy_manager
parent0b276469c2b1d58bf849b6bd1aeb7362e90f45e1 (diff)
Bugfix: Restriction app is displayed on Dashboard app when steping on foot brake
Change-Id: Ic4b2cd4769abf90c07d2c7e9c7961d3cae40202e Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/policy_manager')
-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