fixed crash on rotation on API19-
parent
6308233048
commit
9ea24e2e63
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue