Hi. I created a progress bar with max of -1. Everything is OK, but when I want check if progress bar has infinity max (or -1) it returns current value (not -1) of the progress bar.
I saw that in ProgressState there is a constant named indefinite and it is set when the initmax is -1:
if (initialMax < 0) indefinite = true;
I want to ask if it is possible to have access to ProgressState() or indefinite from ProgressBar object? Something like: boolean isIndefinite()?
Hi. I created a progress bar with max of -1. Everything is OK, but when I want check if progress bar has infinity max (or -1) it returns current value (not -1) of the progress bar.
I saw that in
ProgressState
there is a constant namedindefinite
and it is set when the initmax is -1:if (initialMax < 0) indefinite = true;
I want to ask if it is possible to have access to
ProgressState()
orindefinite
from ProgressBar object? Something like:boolean isIndefinite()
?