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

Commit 54523413 authored by Svet Ganov's avatar Svet Ganov
Browse files

Force autofill on overflow only if empty

Test: manual

bug:37244196

Change-Id: I0953546492ade815617d30f698e92282a1172302
parent 38439169
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);