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

Commit bd275440 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Set up the WebTextView before setting its selection.

parent 103d5364
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5893,6 +5893,10 @@ public class WebView extends AbsoluteLayout
                    }
                    break;
                case UPDATE_TEXT_SELECTION_MSG_ID:
                    // If no textfield was in focus, and the user touched one,
                    // causing it to send this message, then WebTextView has not
                    // been set up yet.  Rebuild it so it can set its selection.
                    rebuildWebTextView();
                    if (inEditingMode()
                            && mWebTextView.isSameTextField(msg.arg1)
                            && msg.arg2 == mTextGeneration) {