From a3802a7a8eece86f31070868f9ba7c9c7b23f92e Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 14 Mar 2013 03:19:42 +0100 Subject: [PATCH] Only Jelly Bean seems to have the auto-scroll issue --- src/com/fsck/k9/view/MessageWebView.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/fsck/k9/view/MessageWebView.java b/src/com/fsck/k9/view/MessageWebView.java index a1aee411f..966553b39 100644 --- a/src/com/fsck/k9/view/MessageWebView.java +++ b/src/com/fsck/k9/view/MessageWebView.java @@ -186,12 +186,11 @@ public class MessageWebView extends TitleBarWebView { @Override public void scrollTo(int x, int y) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && - mOverrideScrollCounter < 3) { + if (Build.VERSION.SDK_INT >= 16 && mOverrideScrollCounter < 3) { /* * 2013-03-12 - cketti * - * WebView on Android 4+ automatically scrolls past the title view using this method. + * WebView on Android 4.1+ automatically scrolls past the title view using this method. * It looks like user-triggered scroll operations don't call this method. So we use * it to override the initial scrolling past the title view. *