ソースを参照

fixed crash on rotation on API19-

yattoz 6 年 前
コミット
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
             100
90
             100
91
 
91
 
92
         if (newsViewModel.screenRatio != newRatio) {
92
         if (newsViewModel.screenRatio != newRatio) {
93
+            if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT)
93
             newsViewModel.fetch((newsViewModel.root as SwipeRefreshLayout), viewAdapter, context!!)
94
             newsViewModel.fetch((newsViewModel.root as SwipeRefreshLayout), viewAdapter, context!!)
94
             newsViewModel.screenRatio = newRatio
95
             newsViewModel.screenRatio = newRatio
95
         }
96
         }