summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit/WebView.java
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2014-07-03 14:47:44 +0100
committerBen Murdoch <benm@google.com>2014-07-16 03:28:43 +0000
commit7302f4f8f7d0e92fcdf0a068eab2b6a47810e926 (patch)
tree217145f9aa1bf343164e71c3b90323efc8a8bfd2 /core/java/android/webkit/WebView.java
parent795903e83ddca05445607074fa7fa6369e37dd6d (diff)
downloadframeworks_base-7302f4f8f7d0e92fcdf0a068eab2b6a47810e926.zip
frameworks_base-7302f4f8f7d0e92fcdf0a068eab2b6a47810e926.tar.gz
frameworks_base-7302f4f8f7d0e92fcdf0a068eab2b6a47810e926.tar.bz2
Plumb temporary view detach calls through WebView.
Intercept View#onStartTemporaryDetach/onFinishTemporaryDetach to handle focus changes correctly. Bug: 14313621 Change-Id: I92ba2f44359643fee63f30b9c35b1ae4183e4245
Diffstat (limited to 'core/java/android/webkit/WebView.java')
-rw-r--r--core/java/android/webkit/WebView.java12
1 files changed, 12 insertions, 0 deletions
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();
+ }
}