Implement home screen activity indicators

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