fixed network issue

This commit is contained in:
X1nto 2020-05-24 19:25:11 +04:00
parent f467c283fe
commit ec464d55ad
1 changed files with 23 additions and 19 deletions

View File

@ -72,6 +72,7 @@ class HomeFragment : Home() {
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe { isConnectedToInternet ->
run {
if (isConnectedToInternet) {
val oa2 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0f, 0.3f)
val oa3 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0.3f, -1f)
@ -96,6 +97,9 @@ class HomeFragment : Home() {
oa3.start()
}
}
}
}