setDebugAssertionsEnabled
Enable internal assertions about RecyclerView's state and throw exceptions if the assertions are violated.
This is primarily intended to diagnose problems with RecyclerView, and should not be enabled in production unless you have a specific reason to do so.
Enabling this may negatively affect performance and/or stability.
Parameters
debugAssertionsEnabled
true to enable assertions; false to disable them