The NotifyAccessibilityStateChange did not work correctly.
Because "currentState.size()" return 2 always.
And following line set newValue to 1 always.
data->mBridge->EmitStateChanged(this, index, 1, 0);
The NotifyAccessibilityStateChange was totally incorrect.
Change-Id: If897084dc5b12b1c92711ef752187cc82fd7b01b
{
if(auto data = GetBridgeData())
{
- auto currentState = GetStates() & states;
- for(auto i = 0u; i < currentState.size(); i++)
+ for(auto i = 0u; i < static_cast<unsigned int>(Dali::Accessibility::State::MAX_COUNT); i++)
{
auto index = static_cast<Dali::Accessibility::State>(i);
- if(currentState[index])
+ if(states[index])
{
- data->mBridge->EmitStateChanged(this, index, 1, 0);
+ data->mBridge->EmitStateChanged(this, index, GetStates()[index], 0);
}
}