|
@@ -5,8 +5,7 @@ import android.util.AttributeSet
|
|
import android.view.View
|
|
import android.view.View
|
|
import android.widget.FrameLayout
|
|
import android.widget.FrameLayout
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
-import dev.chrisbanes.insetter.Insetter
|
|
|
|
-import dev.chrisbanes.insetter.windowInsetTypesOf
|
|
|
|
|
|
+import dev.chrisbanes.insetter.applyInsetter
|
|
import eu.davidea.flexibleadapter.FlexibleAdapter
|
|
import eu.davidea.flexibleadapter.FlexibleAdapter
|
|
import eu.davidea.flexibleadapter.SelectableAdapter
|
|
import eu.davidea.flexibleadapter.SelectableAdapter
|
|
import eu.kanade.tachiyomi.R
|
|
import eu.kanade.tachiyomi.R
|
|
@@ -80,9 +79,11 @@ class LibraryCategoryView @JvmOverloads constructor(context: Context, attrs: Att
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- Insetter.builder()
|
|
|
|
- .paddingBottom(windowInsetTypesOf(navigationBars = true))
|
|
|
|
- .applyToView(recycler)
|
|
|
|
|
|
+ recycler.applyInsetter {
|
|
|
|
+ type(navigationBars = true) {
|
|
|
|
+ padding()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
adapter = LibraryCategoryAdapter(this)
|
|
adapter = LibraryCategoryAdapter(this)
|
|
|
|
|