diff options
author | Junghwan <junghwan.kang@samsung.com> | 2012-09-03 16:00:59 +0900 |
---|---|---|
committer | Junghwan <junghwan.kang@samsung.com> | 2012-09-03 16:00:59 +0900 |
commit | 5d4c6f3b03a053bf950f4e38a4850cb18b0a922e (patch) | |
tree | dfb456eba65788e226155b508f61a2ae19c33475 /src/browser-view | |
parent | 524e9e4957595bd317689e3c76fda8caa8e99d80 (diff) | |
download | browser-5d4c6f3b03a053bf950f4e38a4850cb18b0a922e.tar.gz browser-5d4c6f3b03a053bf950f4e38a4850cb18b0a922e.tar.bz2 browser-5d4c6f3b03a053bf950f4e38a4850cb18b0a922e.zip |
Fix an issue that share menu is not work if there was no selected text
[Title] Fix an issue that share menu is not work if there was no selected text
[Issue#] N_SE-8599
[Problem] Share menu is not work in url field unless selected text is in the url
[Cause] Not considered of a case of empty selected text
[Solution] Share URL if no selected text in url field but still not support sha$
[Team] Browser UI
[Developer] junghwan kang (junghwan.kang)
[Request] N/A
Change-Id: I6eb1ebd40f7876982e49eed549039c18f7f521be
Diffstat (limited to 'src/browser-view')
-rwxr-xr-x | src/browser-view/browser-view.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/browser-view/browser-view.cpp b/src/browser-view/browser-view.cpp index fbf3e762..ac81d56f 100755 --- a/src/browser-view/browser-view.cpp +++ b/src/browser-view/browser-view.cpp @@ -1980,6 +1980,11 @@ void Browser_View::__url_editfield_share_clicked_cb(void *data, Evas_Object *obj Browser_View *browser_view = (Browser_View *)data; const char *selected_text = elm_entry_selection_get(br_elm_editfield_entry_get(browser_view->m_option_header_url_edit_field)); + if (!selected_text || !strlen(selected_text)) { + BROWSER_LOGD("There is no selected_text. Share the URL"); + selected_text = (const char *)browser_view->get_url().c_str(); + } + if (browser_view->_show_share_popup(selected_text)) BROWSER_LOGE("_show_share_popup failed"); } |