From 5c8d642ad4f6c89ac001c6a8e05433cfb2eaac37 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Wed, 23 Aug 2023 12:38:57 +0900 Subject: [PATCH] Revert "[Tizen] Add null check on GetStates" This reverts commit f42d18d5cb6b985ce076d7caf00923803cb178b2. --- dali/devel-api/adaptor-framework/accessibility.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dali/devel-api/adaptor-framework/accessibility.cpp b/dali/devel-api/adaptor-framework/accessibility.cpp index 855a36e..915da51 100644 --- a/dali/devel-api/adaptor-framework/accessibility.cpp +++ b/dali/devel-api/adaptor-framework/accessibility.cpp @@ -445,17 +445,12 @@ public: state[State::VISIBLE] = true; state[State::ACTIVE] = visible; } - else if (GetParent()) + else { auto parentState = GetParent()->GetStates(); state[State::SHOWING] = parentState[State::SHOWING]; state[State::VISIBLE] = parentState[State::VISIBLE]; } - else - { - state[State::SHOWING] = false; - state[State::VISIBLE] = false; - } return state; } -- 2.7.4