aarddict / android

Aard Dictionary for Android
GNU General Public License v3.0
85 stars 43 forks source link

Restore scroll position feature doesn't work on KitKat #106

Open nubenum opened 10 years ago

nubenum commented 10 years ago

On Android 4.4 KitKat, probably related to the Chromium WebView, the scroll position of the previous article is not restored when you go back. For a very short time (fraction of second) the article is at the right position, but is then restored to the top. The recent 1.6.11 update has changed nothing about that. I think this problem only occurs on KitKat, but I was not able to verify that.

itkach commented 10 years ago

On Android 4.4 KitKat, probably related to the Chromium WebView, the scroll position of the previous article is not restored when you go back.

Yes, it does look like it broke in KitKat.

The recent 1.6.11 update has changed nothing about that.

1.6.11 did not intend to fix this.

I don't think this can be fixed in current implementation. The fundamental issue is that WebView API doesn't provide a way to reliably determine when page is really done loading. I will address this in aard2, next gen UI, which is what I'm working on now (alpha-version to be published soon) In aard2, each article will load in a separate WebView instance, so all the state will naturally be preserved.

nubenum commented 10 years ago

Okay, so I'm looking forward to V2.0. Apart from that, one of the most useful apps on my phone! Great work!

itkach commented 10 years ago

Early preview of aard2 is available, you may want to check it: out https://github.com/itkach/aard2-android/releases

Few dictionaries: https://github.com/itkach/slob/wiki/Dictionaries Discussion: http://aarddict.org/forum/?place=topic%2Faarddict%2FKKjFlcxsl9E%2Fdiscussion