* Loading animation: Fix the bug where, after authentication, the animation disappeared too early and made auth screen flashed.

This commit is contained in:
manuroe
2020-09-15 16:48:35 +02:00
parent 33a4cf0b25
commit c6c5b4234b
6 changed files with 84 additions and 15 deletions
@@ -1,5 +1,6 @@
/*
Copyright 2017 Vector Creations Ltd
Copyright 2020 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -35,6 +36,10 @@
#define TABBAR_GROUPS_INDEX 4
#define TABBAR_COUNT 5
@protocol MasterTabBarControllerDelegate;
@interface MasterTabBarController : UITabBarController
@property (weak, nonatomic) IBOutlet UIBarButtonItem *settingsBarButtonItem;
@@ -136,6 +141,7 @@
*/
- (void)refreshTabBarBadges;
@property (nonatomic, weak) id<MasterTabBarControllerDelegate> masterVCDelegate;
// Reference to the current auth VC. It is not nil only when the auth screen is displayed.
@property (nonatomic, readonly) AuthenticationViewController *authViewController;
@@ -163,5 +169,14 @@
@property (nonatomic, readonly) MXGroup *selectedGroup;
@property (nonatomic, readonly) MXSession *selectedGroupSession;
// YES while the authentication screen is displayed
@property (nonatomic, readonly) BOOL authenticationInProgress;
@end
@protocol MasterTabBarControllerDelegate <NSObject>
- (void)masterTabBarControllerDidCompleteAuthentication:(MasterTabBarController *)masterTabBarController;
@end;