[Title] Change timing to enable screen reader
[Issue#] N/A
[Problem]
[Cause]
[Solution]
Change-Id: Ida27f6df0cb2b56c895ef8dabcb2f80b1d433bd8
if (evas_object_clipees_get(smartData->base.clipper))
evas_object_show(smartData->base.clipper);
evas_object_show(smartData->image);
+
+#if ENABLE(TIZEN_SCREEN_READER)
+ ScreenReaderProxy::screenReader().enable(impl);
+#endif
}
static void _ewk_view_smart_hide(Evas_Object* ewkView)
impl->pageClient->setDragMode(false);
#endif
-#if ENABLE(TIZEN_SCREEN_READER)
- if (enable)
- ScreenReaderProxy::screenReader().enable(impl);
-#endif
-
impl->pageClient->setIsVisible(enable);
return true;
}
void ScreenReaderProxy::addViewImpl(EwkViewImpl* viewImpl)
{
+ if (m_viewImplSet.contains(viewImpl))
+ return;
+
m_viewImplSet.append(viewImpl);
viewImpl->focusRing->setImage(SCREEN_READER_FOCUS_RING_IMAGE_PATH, 4, 2);
}
bool ScreenReaderProxy::executeAction(EwkViewImpl* viewImpl, Elm_Access_Action_Info* actionInfo)
{
- if (!m_viewImplSet.contains(viewImpl))
- addViewImpl(viewImpl);
+ addViewImpl(viewImpl);
if (actionInfo->action_type == ELM_ACCESS_ACTION_HIGHLIGHT_NEXT) {
if (!viewImpl->page()->moveScreenReaderFocus(true))