fixed crash on rotation on API19-

remotes/origin/devel
yattoz 2019-12-15 19:13:41 +01:00
parent 6308233048
commit 9ea24e2e63
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class NewsFragment : Fragment() {
100
if (newsViewModel.screenRatio != newRatio) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT)
newsViewModel.fetch((newsViewModel.root as SwipeRefreshLayout), viewAdapter, context!!)
newsViewModel.screenRatio = newRatio
}