Hide the insertion handle when performing a Cut

Make behavior uniform with other apps on Android,
where after a Cut from an editable field, the 
insertion handle is hidden and only the cursor
remains visible.
https://codereview.chromium.org/394953005/

BUG:394781

Review URL: https://codereview.chromium.org/399613008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284138 0039d316-1c4b-4281-b951-d872f2087c98
parent 8d94c765
...@@ -357,6 +357,7 @@ Sanjoy Pal <sanjoy.pal@samsung.com> ...@@ -357,6 +357,7 @@ Sanjoy Pal <sanjoy.pal@samsung.com>
Sanne Wouda <sanne.wouda@gmail.com> Sanne Wouda <sanne.wouda@gmail.com>
Sathish Kuppuswamy <sathish.kuppuswamy@intel.com> Sathish Kuppuswamy <sathish.kuppuswamy@intel.com>
Satoshi Matsuzaki <satoshi.matsuzaki@gmail.com> Satoshi Matsuzaki <satoshi.matsuzaki@gmail.com>
Sayan Nayak <sayan.nayak@samsung.com>
Scott Blomquist <sblom@microsoft.com> Scott Blomquist <sblom@microsoft.com>
Sean Bryant <sean@cyberwang.net> Sean Bryant <sean@cyberwang.net>
Seo Sanghyeon <sanxiyn@gmail.com> Seo Sanghyeon <sanxiyn@gmail.com>
......
...@@ -150,6 +150,7 @@ public class SelectActionModeCallback implements ActionMode.Callback { ...@@ -150,6 +150,7 @@ public class SelectActionModeCallback implements ActionMode.Callback {
mActionHandler.selectAll(); mActionHandler.selectAll();
} else if (id == R.id.select_action_menu_cut) { } else if (id == R.id.select_action_menu_cut) {
mActionHandler.cut(); mActionHandler.cut();
mode.finish();
} else if (id == R.id.select_action_menu_copy) { } else if (id == R.id.select_action_menu_copy) {
mActionHandler.copy(); mActionHandler.copy();
mode.finish(); mode.finish();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment