Closed SteinerOk closed 3 years ago
Right now using Kotlin DSL possible only if I use consume with boolean arg, like this:
view.applyInsetter { consume(false) }
witch equals CONSUME_ALL or CONSUME_NONE, but in some cases I need CONSUME_AUTO, like this:
Insetter.builder() .applySystemWindowInsetsToPadding(Side.RIGHT or Side.LEFT) .consumeSystemWindowInsets(Insetter.CONSUME_AUTO) .applyToView(view)
and is impossible with Kotlin DSL :(
@chrisbanes I think easy way to solve it - just add this function to InsetterDsl:
fun consume(@ConsumeOptions consume: Int) { builder = builder.consume(consume) }
Right now using Kotlin DSL possible only if I use consume with boolean arg, like this:
witch equals CONSUME_ALL or CONSUME_NONE, but in some cases I need CONSUME_AUTO, like this:
and is impossible with Kotlin DSL :(