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
indeterminateMode
When you set the indeterminateMode to true you spawn a handler that continuously updates the state of the progress bar.
true
var indeterminateMode = false set(value) { field = value onIndeterminateModeChangeListener?.invoke(field) progressIndeterminateMode = 0f progressDirectionIndeterminateMode = ProgressDirection.TO_RIGHT startAngleIndeterminateMode = DEFAULT_START_ANGLE indeterminateModeHandler?.removeCallbacks(indeterminateModeRunnable) progressAnimator?.cancel() indeterminateModeHandler = Handler() if (field) { indeterminateModeHandler?.post(indeterminateModeRunnable) } }
The problem is that this handler gets cleared only in onDetachedFromWindow. Hence you get the leak if the view was never attached.
onDetachedFromWindow
The text was updated successfully, but these errors were encountered:
lopspower#52 Do not start indeterminate update loop if the view is de…
37447eb
…tached
No branches or pull requests
When you set the
indeterminateMode
totrue
you spawn a handler that continuously updates the state of the progress bar.The problem is that this handler gets cleared only in
onDetachedFromWindow
. Hence you get the leak if the view was never attached.The text was updated successfully, but these errors were encountered: