mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 18:10:48 +01:00
Fixed webview starting in the middle of a new page
This commit is contained in:
parent
c476112266
commit
47bfeddb05
2 changed files with 6 additions and 1 deletions
|
@ -146,7 +146,11 @@ class WebViewActivity : BaseActivity() {
|
|||
override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) {
|
||||
super.onPageStarted(view, url, favicon)
|
||||
invalidateOptionsMenu()
|
||||
//swipe_refresh.isEnabled = false
|
||||
}
|
||||
|
||||
override fun onPageCommitVisible(view: WebView?, url: String?) {
|
||||
super.onPageCommitVisible(view, url)
|
||||
nested_view.scrollTo(0,0)
|
||||
}
|
||||
}
|
||||
val marginB = webview.marginBottom
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/nested_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
|
Loading…
Reference in a new issue