Skip to content

Instantly share code, notes, and snippets.

@yongjhih
Last active October 19, 2023 18:15
Show Gist options
  • Save yongjhih/bfdb33ec81f94d73646b1cf7f432726c to your computer and use it in GitHub Desktop.
Save yongjhih/bfdb33ec81f94d73646b1cf7f432726c to your computer and use it in GitHub Desktop.
private val childHelper by lazy { NestedScrollingChildHelper(this).apply {
//isNestedScrollingEnabled = false
} }
init {
isNestedScrollingEnabled = true
}
override fun setNestedScrollingEnabled(enabled: Boolean) {
return childHelper.setNestedScrollingEnabled(enabled) // Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object kotlin.Lazy.getValue()' on a null object reference
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment