Loading core/java/android/webkit/WebView.java +4 −1 Original line number Diff line number Diff line Loading @@ -844,6 +844,7 @@ public class WebView extends AbsoluteLayout static final int HANDLE_ID_EXTENT = 3; static boolean sDisableNavcache = false; static boolean sEnableWebTextView = false; // the color used to highlight the touch rectangles static final int HIGHLIGHT_COLOR = 0x6633b5e5; // the region indicating where the user touched on the screen Loading Loading @@ -1465,7 +1466,6 @@ public class WebView extends AbsoluteLayout private void init() { OnTrimMemoryListener.init(getContext()); sDisableNavcache = nativeDisableNavcache(); setWillNotDraw(false); setFocusable(true); setFocusableInTouchMode(true); Loading Loading @@ -5132,6 +5132,9 @@ public class WebView extends AbsoluteLayout * multiline, and what text it contains. It also removes it if necessary. */ /* package */ void rebuildWebTextView() { if (!sEnableWebTextView) { return; // always use WebKit's text entry } // If the WebView does not have focus, do nothing until it gains focus. if (!hasFocus() && (null == mWebTextView || !mWebTextView.hasFocus())) { return; Loading Loading
core/java/android/webkit/WebView.java +4 −1 Original line number Diff line number Diff line Loading @@ -844,6 +844,7 @@ public class WebView extends AbsoluteLayout static final int HANDLE_ID_EXTENT = 3; static boolean sDisableNavcache = false; static boolean sEnableWebTextView = false; // the color used to highlight the touch rectangles static final int HIGHLIGHT_COLOR = 0x6633b5e5; // the region indicating where the user touched on the screen Loading Loading @@ -1465,7 +1466,6 @@ public class WebView extends AbsoluteLayout private void init() { OnTrimMemoryListener.init(getContext()); sDisableNavcache = nativeDisableNavcache(); setWillNotDraw(false); setFocusable(true); setFocusableInTouchMode(true); Loading Loading @@ -5132,6 +5132,9 @@ public class WebView extends AbsoluteLayout * multiline, and what text it contains. It also removes it if necessary. */ /* package */ void rebuildWebTextView() { if (!sEnableWebTextView) { return; // always use WebKit's text entry } // If the WebView does not have focus, do nothing until it gains focus. if (!hasFocus() && (null == mWebTextView || !mWebTextView.hasFocus())) { return; Loading