mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 02:01:51 +01:00
View extensions cleanup
This commit is contained in:
parent
8de38e379a
commit
49b18181e7
@ -188,12 +188,7 @@ fun View.applyWindowInsetsForRootController(bottomNav: View) {
|
||||
viewTreeObserver.removeOnGlobalLayoutListener(this)
|
||||
setOnApplyWindowInsetsListener { view, insets ->
|
||||
view.updateLayoutParams<FrameLayout.LayoutParams> {
|
||||
val attrsArray = intArrayOf(android.R.attr.actionBarSize)
|
||||
val array = view.context.obtainStyledAttributes(attrsArray)
|
||||
// topMargin = insets.systemWindowInsetTop + array
|
||||
// .getDimensionPixelSize(0, 0)
|
||||
bottomMargin = bottomNav.height
|
||||
array.recycle()
|
||||
}
|
||||
insets
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user