summaryrefslogtreecommitdiff
path: root/chromium/java/com/android/webview
diff options
context:
space:
mode:
authorMartin Kosiba <mkosiba@google.com>2013-07-25 17:29:54 +0100
committerMartin Kosiba <mkosiba@google.com>2013-07-25 17:29:54 +0100
commit2841152693d0410f8e8c309aae514329f008a612 (patch)
treed51afaeaf0d20507001c0faa451c15e01246501b /chromium/java/com/android/webview
parentf6bf9fff6ed4b8ba55f2b172e48dba96f26d578e (diff)
downloadwebview-2841152693d0410f8e8c309aae514329f008a612.tar.gz
Add a comment to setOverScrollMode.
This explains why mAwContents can be null in that method. Change-Id: I6350f8e65258dea462bb3ce5496d2af2bea271ae
Diffstat (limited to 'chromium/java/com/android/webview')
-rw-r--r--chromium/java/com/android/webview/chromium/WebViewChromium.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/java/com/android/webview/chromium/WebViewChromium.java b/chromium/java/com/android/webview/chromium/WebViewChromium.java
index 3962bff..5726d11 100644
--- a/chromium/java/com/android/webview/chromium/WebViewChromium.java
+++ b/chromium/java/com/android/webview/chromium/WebViewChromium.java
@@ -720,6 +720,10 @@ class WebViewChromium implements WebViewProvider,
@Override
public void setOverScrollMode(int mode) {
+ // This gets called from the android.view.View c'tor that WebView inherits from. This
+ // causes the method to be called when mAwContents == null.
+ // It's safe to ignore these calls however since AwContents will read the current value of
+ // this setting when it's created.
if (mAwContents != null) {
mAwContents.setOverScrollMode(mode);
}