pull/1072/head
gedoor 4 years ago
parent 33f022aefb
commit b3aadc6146
  1. 3
      app/src/main/java/io/legado/app/utils/viewbindingdelegate/ActivityViewBindings.kt

@ -7,8 +7,9 @@ import androidx.core.app.ComponentActivity
import androidx.viewbinding.ViewBinding
/**
*
* Create new [ViewBinding] associated with the [ComponentActivity]
*/
@JvmName("viewBindingActivity")
inline fun <T : ViewBinding> ComponentActivity.viewBinding(
crossinline bindingInflater: (LayoutInflater) -> T,
setContentView: Boolean = false

Loading…
Cancel
Save