Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fe850c0 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by android-build-merger
Browse files

Merge "Force autofill on overflow only if empty" into oc-dev

am: 64cf2bb1

Change-Id: Idbc5b0b7414e5537bb4f734cef439c2ebf449324
parents 5c34fceb 64cf2bb1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3836,9 +3836,11 @@ public class Editor {
            }

            if (mTextView.canRequestAutofill()) {
                final int mode = mTextView.getText().length() <= 0
                        ? MenuItem.SHOW_AS_ACTION_IF_ROOM : MenuItem.SHOW_AS_ACTION_NEVER;
                menu.add(Menu.NONE, TextView.ID_AUTOFILL, MENU_ITEM_ORDER_AUTOFILL,
                        com.android.internal.R.string.autofill)
                        .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
                        .setShowAsAction(mode);
            }

            updateSelectAllItem(menu);