mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Only Jelly Bean seems to have the auto-scroll issue
This commit is contained in:
parent
8dcc769c50
commit
a3802a7a8e
@ -186,12 +186,11 @@ public class MessageWebView extends TitleBarWebView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void scrollTo(int x, int y) {
|
public void scrollTo(int x, int y) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH &&
|
if (Build.VERSION.SDK_INT >= 16 && mOverrideScrollCounter < 3) {
|
||||||
mOverrideScrollCounter < 3) {
|
|
||||||
/*
|
/*
|
||||||
* 2013-03-12 - cketti
|
* 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 looks like user-triggered scroll operations don't call this method. So we use
|
||||||
* it to override the initial scrolling past the title view.
|
* it to override the initial scrolling past the title view.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user