Merge branch 'bugfix/loading_indicator_freeze' into 'release/6_20'

beginningLoading should not be called multiple times

See merge request BPHV_MIPS/mvm_core!34
This commit is contained in:
Pan, Xinlei (Ryan) 2019-09-26 17:33:27 -04:00
commit 7b64f67c15

View File

@ -63,14 +63,14 @@
if (self.loadingViewController) {
self.loadCount++;
// Notify we are beginning the laod
if ([[MVMCoreObject sharedInstance].loadingProtocol respondsToSelector:@selector(beginningLoading)]) {
[[MVMCoreObject sharedInstance].loadingProtocol beginningLoading];
}
// If we are already waiting to animate or animating in, do nothing.
if (!self.animationTimer && !self.animatingIn) {
// Notify we are beginning the laod
if ([[MVMCoreObject sharedInstance].loadingProtocol respondsToSelector:@selector(beginningLoading)]) {
[[MVMCoreObject sharedInstance].loadingProtocol beginningLoading];
}
// Restarts the loading animation.
[self.loadingViewController startLoading];