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

Commit 64cf2bb1 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

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

parents ce8eae73 54523413
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);