mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
animate webview alpha changes
This commit is contained in:
parent
6e045faf9d
commit
9bd6b9409c
1 changed files with 2 additions and 2 deletions
|
|
@ -67,13 +67,13 @@ fun WebReader(
|
|||
settings.allowFileAccess = true
|
||||
settings.domStorageEnabled = true
|
||||
|
||||
visibility = View.INVISIBLE
|
||||
alpha = 0.0f
|
||||
|
||||
webViewClient = object : WebViewClient() {
|
||||
override fun onPageFinished(view: WebView?, url: String?) {
|
||||
super.onPageFinished(view, url)
|
||||
viewModel?.showNavBar()
|
||||
visibility = View.VISIBLE
|
||||
view?.animate()?.alpha(1.0f)?.duration = 200
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue