From 7302f4f8f7d0e92fcdf0a068eab2b6a47810e926 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Thu, 3 Jul 2014 14:47:44 +0100 Subject: Plumb temporary view detach calls through WebView. Intercept View#onStartTemporaryDetach/onFinishTemporaryDetach to handle focus changes correctly. Bug: 14313621 Change-Id: I92ba2f44359643fee63f30b9c35b1ae4183e4245 --- core/java/android/webkit/WebView.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/java/android/webkit/WebView.java') diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 290a574..adf4803 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2471,4 +2471,16 @@ public class WebView extends AbsoluteLayout mProvider.getViewDelegate().preDispatchDraw(canvas); super.dispatchDraw(canvas); } + + @Override + public void onStartTemporaryDetach() { + super.onStartTemporaryDetach(); + mProvider.getViewDelegate().onStartTemporaryDetach(); + } + + @Override + public void onFinishTemporaryDetach() { + super.onFinishTemporaryDetach(); + mProvider.getViewDelegate().onFinishTemporaryDetach(); + } } -- cgit v1.1