infinite loop crash fix in setting up bottom progress bar
This commit is contained in:
parent
d47bb1ced1
commit
d0326a9b30
@ -824,14 +824,14 @@ CGFloat const PanelAnimationDuration = 0.2;
|
|||||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||||
if (self.bottomProgressBarHeightConstraint.constant != PaddingOne) {
|
if (self.bottomProgressBarHeightConstraint.constant != PaddingOne) {
|
||||||
self.bottomProgressBarHeightConstraint.constant = PaddingOne;
|
self.bottomProgressBarHeightConstraint.constant = PaddingOne;
|
||||||
[self.bottomProgressBar.superview layoutIfNeeded];
|
[self.bottomProgressBar updateConstraintsIfNeeded];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (progress > 0.05) {
|
if (progress > 0.05) {
|
||||||
self.bottomProgressBar.progress = progress;
|
self.bottomProgressBar.progress = progress;
|
||||||
} else {
|
} else {
|
||||||
self.bottomProgressBarHeightConstraint.constant = 0;
|
self.bottomProgressBarHeightConstraint.constant = 0;
|
||||||
[self.bottomProgressBar.superview layoutIfNeeded];
|
[self.bottomProgressBar updateConstraintsIfNeeded];
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user