mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Fix inset not applying when in landscape (#6104)
Reverts inset change from #5997, was changed due to it not changing the padding when using setPadding
This commit is contained in:
parent
9aa676333c
commit
b4490e209b
1 changed files with 6 additions and 5 deletions
|
@ -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.applyInsetter
|
||||||
import dev.chrisbanes.insetter.windowInsetTypesOf
|
|
||||||
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()
|
recycler.applyInsetter {
|
||||||
.paddingBottom(windowInsetTypesOf(navigationBars = true))
|
type(navigationBars = true) {
|
||||||
.applyToView(recycler)
|
padding()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
adapter = LibraryCategoryAdapter(this)
|
adapter = LibraryCategoryAdapter(this)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue