Commit 95935c33 authored by Tao Bai's avatar Tao Bai Committed by Commit Bot

Show AUTOFILL in the overflow menu

To be consistent with Android native view, this patch make WebView always show AUTOFILL menun in the overflow menu.

Bug: 907698
Change-Id: Ibe9e8bfd3850177339cfd969488649b44b5524d5
Reviewed-on: https://chromium-review.googlesource.com/c/1347000
Commit-Queue: Tao Bai <michaelbai@chromium.org>
Reviewed-by: default avatarChangwan Ryu <changwan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611267}
parent fe50a0a9
......@@ -42,7 +42,7 @@ public class AutofillActionModeCallback implements ActionMode.Callback {
MenuItem item = menu.add(
Menu.NONE, mAutofillMenuItem, Menu.CATEGORY_SECONDARY, mAutofillMenuItemTitle);
item.setShowAsActionFlags(
MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
MenuItem.SHOW_AS_ACTION_NEVER | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
}
return true;
}
......
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