[Title] Fix crash when the app is terminated while color picker is shown
[Issue#] N_SE-41001
[Problem] Crash when the apps terminated while color picker is shown
[Cause] Color picker resource is not accessible during destruction time.
[Solution] Close color picker before the page is destructed.
Change-Id: I5bfe69292ca17c55c8f5531b2563b921084329d3
#if ENABLE(TIZEN_SCREEN_READER)
ScreenReaderProxy::screenReader().disable(smartData->priv);
#endif
#if ENABLE(TIZEN_SCREEN_READER)
ScreenReaderProxy::screenReader().disable(smartData->priv);
#endif
+#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
+ // Close color picker if it's opened.
+ if (smartData && smartData->priv && smartData->priv->inputPicker->isColorPickerShown())
+ ewk_view_color_picker_color_set(ewkView, 0, 0, 0, 0);
+#endif
if (smartData && smartData->priv)
_ewk_view_impl_del(smartData->priv);
if (smartData && smartData->priv)
_ewk_view_impl_del(smartData->priv);
: m_ewkView(ewkView)
, m_pickerLayout(0)
, m_dataList(0)
: m_ewkView(ewkView)
, m_pickerLayout(0)
, m_dataList(0)
+#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
+ , m_isColorPickerShown(false)
+#endif
#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
void InputPicker::showColorPicker(int r, int g, int b, int)
{
#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
void InputPicker::showColorPicker(int r, int g, int b, int)
{
+ m_isColorPickerShown = true;
ewk_color_popup(r, g, b);
}
void InputPicker::hideColorPicker()
{
ewk_color_popup(r, g, b);
}
void InputPicker::hideColorPicker()
{
+ m_isColorPickerShown = false;
if (!m_pickerLayout)
return;
if (!m_pickerLayout)
return;
#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
void showColorPicker(int, int, int, int);
void hideColorPicker();
#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
void showColorPicker(int, int, int, int);
void hideColorPicker();
+ bool isColorPickerShown() { return m_isColorPickerShown; }
#endif
void ewk_date_popup(const char*);
#endif
void ewk_date_popup(const char*);
Evas_Object* m_ewkView;
Input_Picker_Layout* m_pickerLayout;
Eina_List* m_dataList;
Evas_Object* m_ewkView;
Input_Picker_Layout* m_pickerLayout;
Eina_List* m_dataList;
+#if ENABLE(TIZEN_INPUT_COLOR_PICKER)
+ bool m_isColorPickerShown;
+#endif