Implement home screen activity indicators

This commit is contained in:
Andy Uhnak
2022-02-15 15:47:46 +00:00
parent 89da843d37
commit d8e790f8ea
19 changed files with 168 additions and 366 deletions
@@ -48,10 +48,5 @@
*/
@property CGFloat keyboardHeight;
/**
Returns `YES` if any `MXSession` currently requires the display of an activity indicator.
*/
@property (nonatomic, readonly) BOOL shouldShowActivityIndicator;
@end
@@ -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];
}