diff options
author | Adam Powell <adamp@google.com> | 2011-09-11 17:48:42 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2011-09-12 18:04:00 -0700 |
commit | e00e8a78374cdcf01a25bd6327d2b94944b2bc3f (patch) | |
tree | aef28b84fceda7b456c523553a1fbbdc876f8d3c /core/java/android/webkit/WebSettings.java | |
parent | aeb116750110cf9cc1ef82d208f3a8ba3b8be009 (diff) | |
download | frameworks_base-e00e8a78374cdcf01a25bd6327d2b94944b2bc3f.zip frameworks_base-e00e8a78374cdcf01a25bd6327d2b94944b2bc3f.tar.gz frameworks_base-e00e8a78374cdcf01a25bd6327d2b94944b2bc3f.tar.bz2 |
Pause WebKit drawing when WebView loses window focus.
This prevents animations and other live page content from consuming
too many resources while the user is interacting with a popup window.
Bug 5300522
Change-Id: I40fb6d16d56b540c431172052a1ae7fead7109be
Diffstat (limited to 'core/java/android/webkit/WebSettings.java')
-rw-r--r-- | core/java/android/webkit/WebSettings.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 77f6776..9c44138 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -643,10 +643,10 @@ public class WebSettings { /** * Set whether the WebView will enable smooth transition while panning or - * zooming. If it is true, WebView will choose a solution to maximize the - * performance. e.g. the WebView's content may not be updated during the - * transition. If it is false, WebView will keep its fidelity. The default - * value is false. + * zooming or while the window hosting the WebView does not have focus. + * If it is true, WebView will choose a solution to maximize the performance. + * e.g. the WebView's content may not be updated during the transition. + * If it is false, WebView will keep its fidelity. The default value is false. */ public void setEnableSmoothTransition(boolean enable) { mEnableSmoothTransition = enable; |