[UI] Fix easter egg prize receiving.

This commit is contained in:
Kuba Szczodrzyński 2021-05-26 19:09:10 +02:00
parent fd0fc652a3
commit baa98f25c5
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -95,9 +95,11 @@ class LoginEggsFragment : Fragment(), CoroutineScope {
anim.interpolator = AccelerateDecelerateInterpolator() anim.interpolator = AccelerateDecelerateInterpolator()
anim.duration = 10 anim.duration = 10
anim.fillAfter = true anim.fillAfter = true
activity.runOnUiThread {
activity.getRootView().startAnimation(anim) activity.getRootView().startAnimation(anim)
nav.navigate(R.id.loginPrizeFragment, null, activity.navOptions) nav.navigate(R.id.loginPrizeFragment, null, activity.navOptions)
} }
}
}, "EggInterface") }, "EggInterface")
loadUrl("https://szkolny.eu/game/runner.html") loadUrl("https://szkolny.eu/game/runner.html")
webViewClient = object : WebViewClient() { webViewClient = object : WebViewClient() {