瀏覽代碼

fixed crash on rotation on API19-

yattoz 4 年之前
父節點
當前提交
9ea24e2e63
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsFragment.kt

+ 1 - 0
app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsFragment.kt 查看文件

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