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

Commit 64794489 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

TextViews keep focus after Done

Otherwise the ViewRoot tries to focus something else and as a result
it will scroll back to the top of a form with many fields, which is
annoying.

Change-Id: I1de10f76fe4b82bc4097fc13c629450d6f999fd0
parent 8bfcd133
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -3816,7 +3816,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                if (imm != null && imm.isActive(this)) {
                if (imm != null && imm.isActive(this)) {
                    imm.hideSoftInputFromWindow(getWindowToken(), 0);
                    imm.hideSoftInputFromWindow(getWindowToken(), 0);
                }
                }
                clearFocus();
                return;
                return;
            }
            }
        }
        }