reverting code which was added for infinite loop crash only in ipads and force crash

This commit is contained in:
Khan, Arshad 2021-02-18 23:45:26 +05:30
parent 591fd043f1
commit 76031200fa

View File

@ -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 updateConstraintsIfNeeded]; [self.bottomProgressBar.superview layoutIfNeeded];
} }
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 updateConstraintsIfNeeded]; [self.bottomProgressBar.superview layoutIfNeeded];
} }
}]; }];
} }