mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Add new loading indicators
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user