瀏覽代碼

Also use no predictive animations for AutofitRecyclerView

len 9 年之前
父節點
當前提交
0fe0088ff0
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/src/main/java/eu/kanade/tachiyomi/widget/AutofitRecyclerView.kt

+ 1 - 2
app/src/main/java/eu/kanade/tachiyomi/widget/AutofitRecyclerView.kt

@@ -1,14 +1,13 @@
 package eu.kanade.tachiyomi.widget
 
 import android.content.Context
-import android.support.v7.widget.GridLayoutManager
 import android.support.v7.widget.RecyclerView
 import android.util.AttributeSet
 
 class AutofitRecyclerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
         RecyclerView(context, attrs) {
 
-    private val manager = GridLayoutManager(context, 1)
+    private val manager = NpaGridLayoutManager(context, 1)
 
     private var columnWidth = -1