summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMikhail Naganov <mnaganov@google.com>2015-07-07 13:39:31 -0700
committerMikhail Naganov <mnaganov@google.com>2015-07-07 13:39:48 -0700
commit550f621aaffb3e66fd023260f156df3be07e3ae8 (patch)
treef780571294a2c8061ab86ef7e99685b705bd2ab5 /core
parent53d17aeee07de3f4e7e88f9578f5c0b689f5b627 (diff)
downloadframeworks_base-550f621aaffb3e66fd023260f156df3be07e3ae8.zip
frameworks_base-550f621aaffb3e66fd023260f156df3be07e3ae8.tar.gz
frameworks_base-550f621aaffb3e66fd023260f156df3be07e3ae8.tar.bz2
Enhance documentation of WebSettings.WebSettings method
Add a note about WebView reloading the page if the UA string is change during loading. See crbug.com/315891. Bug: 22325430 Change-Id: I04f5ab703fd2dcedf0709e4aa1d17b1204df355b
Diffstat (limited to 'core')
-rw-r--r--core/java/android/webkit/WebSettings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java
index cfa347f..f62b4cc 100644
--- a/core/java/android/webkit/WebSettings.java
+++ b/core/java/android/webkit/WebSettings.java
@@ -1211,6 +1211,12 @@ public abstract class WebSettings {
/**
* Sets the WebView's user-agent string. If the string is null or empty,
* the system default value will be used.
+ *
+ * Note that starting from {@link android.os.Build.VERSION_CODES#KITKAT} Android
+ * version, changing the user-agent while loading a web page causes WebView
+ * to initiate loading once again.
+ *
+ * @param ua new user-agent string
*/
public abstract void setUserAgentString(String ua);