fixed network issue
This commit is contained in:
parent
f467c283fe
commit
ec464d55ad
|
@ -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()
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue