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

Commit b24e18b1 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Update mTextGeneration when setting the selection to the default.

Bug 2610682

Change-Id: Ib3b95cd9443ef31a6c736cdac076260b4f3bbe71
parent 6994f311
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -666,6 +666,7 @@ import java.util.ArrayList;
        } else {
            Selection.setSelection(text, selection, selection);
        }
        if (mWebView != null) mWebView.incrementTextGeneration();
    }

    /**
+2 −0
Original line number Diff line number Diff line
@@ -312,6 +312,8 @@ public class WebView extends AbsoluteLayout
    // more key events.
    private int mTextGeneration;

    /* package */ void incrementTextGeneration() { mTextGeneration++; }

    // Used by WebViewCore to create child views.
    /* package */ final ViewManager mViewManager;