Add new loading indicators

This commit is contained in:
Andy Uhnak
2022-02-12 17:18:52 +00:00
parent e1db1620ee
commit 514bdb4705
24 changed files with 628 additions and 188 deletions
@@ -492,18 +492,21 @@ const CGFloat MXKViewControllerMaxExternalKeyboardHeight = 80;
#pragma mark - Activity indicator
- (void)stopActivityIndicator
{
// Check whether all conditions are satisfied before stopping loading wheel
BOOL isActivityInProgress = NO;
- (BOOL)shouldShowActivityIndicator {
for (MXSession *mxSession in mxSessionArray)
{
if (mxSession.shouldShowActivityIndicator)
{
isActivityInProgress = YES;
return YES;
}
}
if (!isActivityInProgress)
return NO;
}
- (void)stopActivityIndicator
{
// Check whether all conditions are satisfied before stopping loading wheel
if (!self.shouldShowActivityIndicator)
{
[super stopActivityIndicator];
}