We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using kohii inside fragment in recyclerview. I have bottom navigation activity in which I'm using .show() and .hide() to change fragment.
Video is playing on hide fragment.
Video must pause on hide fragment and resume on show fragment.
The text was updated successfully, but these errors were encountered:
@deepanshut041 I guess Kohii cannot judge if the Fragment View is detached. Please try kohii.lockManager(fragment) (API:
kohii.lockManager(fragment)
kohii/kohii-core/src/main/java/kohii/v1/core/Engine.kt
Line 201 in bb096fd
kohii.unlockManager(fragment)
Sorry, something went wrong.
@eneim thanks below solution worked for me
override fun onHiddenChanged(hidden: Boolean) { super.onHiddenChanged(hidden) if (hidden) { kohii.lockBucket(this.recyclerView); } else { kohii.unlockBucket(this.recyclerView); } }
No branches or pull requests
I'm using kohii inside fragment in recyclerview. I have bottom navigation activity in which I'm using .show() and .hide() to change fragment.
Current behavior:
Video is playing on hide fragment.
Expected behavior:
Video must pause on hide fragment and resume on show fragment.
The text was updated successfully, but these errors were encountered: