key backup settings: Make it display loading wheel and error

This commit is contained in:
manuroe
2019-01-31 10:19:27 +01:00
parent 4eeeff53f8
commit f15c0f952f
5 changed files with 52 additions and 4 deletions
@@ -4334,6 +4334,23 @@ KeyBackupRecoverCoordinatorBridgePresenterDelegate>
[self presentViewController:currentAlert animated:YES completion:nil];
}
- (void)settingsKeyBackup:(SettingsKeyBackupTableViewSection *)settingsKeyBackupTableViewSection showActivityIndicator:(BOOL)show
{
if (show)
{
[self startActivityIndicator];
}
else
{
[self stopActivityIndicator];
}
}
- (void)settingsKeyBackup:(SettingsKeyBackupTableViewSection *)settingsKeyBackupTableViewSection showError:(NSError *)error
{
[[AppDelegate theDelegate] showErrorAsAlert:error];
}
#pragma mark - MXKEncryptionInfoView
- (void)showDeviceInfo:(MXDeviceInfo*)deviceInfo