Merge branch 'hotfix/infinite_loop_via_bottom_progress_bar' into 'release/8_6_0'

Hotfix for infinite loop via bottom progress bar

See merge request BPHV_MIPS/mvm_core_ui!671
This commit is contained in:
Pfeil, Scott Robert 2021-02-17 09:12:34 -05:00
commit 591fd043f1

View File

@ -824,14 +824,14 @@ CGFloat const PanelAnimationDuration = 0.2;
[MVMCoreDispatchUtility performBlockOnMainThread:^{
if (self.bottomProgressBarHeightConstraint.constant != PaddingOne) {
self.bottomProgressBarHeightConstraint.constant = PaddingOne;
[self.bottomProgressBar.superview layoutIfNeeded];
[self.bottomProgressBar updateConstraintsIfNeeded];
}
if (progress > 0.05) {
self.bottomProgressBar.progress = progress;
} else {
self.bottomProgressBarHeightConstraint.constant = 0;
[self.bottomProgressBar.superview layoutIfNeeded];
[self.bottomProgressBar updateConstraintsIfNeeded];
}
}];
}