diff options
| author | 2010-01-26 10:26:57 -0800 | |
|---|---|---|
| committer | 2010-01-26 10:26:57 -0800 | |
| commit | 79015fd26316bca57c39f553ff74fe4fa6376a49 (patch) | |
| tree | 7d478132d3e59081b6bbb594d5bcf14364b5bad5 | |
| parent | 09ac3c3cbc6278af127cffedb9d534449e63b683 (diff) | |
| parent | cf0957ce4b0ba45b6c66c726710a5126c6a57542 (diff) | |
am cf0957ce: am 77dc179b: As embedded and full screen shares the same view, we have to replace the AbsoluteLayout with ViewGroup.Layout before setting it to the dialog as dialog\'s FrameLayout doesn\'t accept AbsoluteLayout.
Merge commit 'cf0957ce4b0ba45b6c66c726710a5126c6a57542'
* commit 'cf0957ce4b0ba45b6c66c726710a5126c6a57542':
As embedded and full screen shares the same view,
| -rw-r--r-- | core/java/android/webkit/WebView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 56650a66a79f..bbc1a7864a96 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -5985,6 +5985,13 @@ public class WebView extends AbsoluteLayout } mFullScreenHolder = new PluginFullScreenHolder( WebView.this, data.mNpp); + // as we are sharing the View between full screen and + // embedded mode, we have to remove the + // AbsoluteLayout.LayoutParams set by embedded mode to + // ViewGroup.LayoutParams before adding it to the dialog + data.mView.setLayoutParams(new ViewGroup.LayoutParams( + ViewGroup.LayoutParams.FILL_PARENT, + ViewGroup.LayoutParams.FILL_PARENT)); mFullScreenHolder.setContentView(data.mView); mFullScreenHolder.setCancelable(false); mFullScreenHolder.setCanceledOnTouchOutside(false); |