mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-09-10 20:43:14 +02:00
Fixed webview starting in the middle of a new page
This commit is contained in:
parent
c476112266
commit
47bfeddb05
@ -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 New Issue
Block a user