Settings: work in progress for multiaccounts

This commit is contained in:
Gautier Pelloux-Prayer 2015-11-18 16:19:35 +01:00
parent 94dba3b493
commit 4cab730c39
3 changed files with 5 additions and 3 deletions

View file

@ -645,7 +645,7 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController *)sender {
}
- (void)settingsViewControllerDidAppear:(IASKAppSettingsViewController *)sender {
- (void)settingsViewControllerWillAppear:(IASKAppSettingsViewController *)sender {
// going to account: fill info
if ([sender.file isEqualToString:@"Account"]) {
LOGI(@"Going editting account %@", sender.title);
@ -846,6 +846,8 @@ static UICompositeViewDescription *compositeDescription = nil;
}
- (IBAction)onDialerBackClick:(id)sender {
[settingsStore synchronize];
DialerView *view = VIEW(DialerView);
[PhoneMainView.instance changeCurrentView:view.compositeViewDescription];
}

View file

@ -26,7 +26,7 @@
@protocol IASKSettingsDelegate
- (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController*)sender;
- (void)settingsViewControllerDidAppear:(IASKAppSettingsViewController *)sender;
- (void)settingsViewControllerWillAppear:(IASKAppSettingsViewController *)sender;
@optional
#pragma mark - UITableView header customization

View file

@ -206,7 +206,7 @@ CGRect IASKCGRectSwap(CGRect rect);
// hack gautier: be notified when changing page
if (self.delegate && [self.delegate conformsToProtocol:@protocol(IASKSettingsDelegate)]) {
[self.delegate settingsViewControllerDidAppear:self];
[self.delegate settingsViewControllerWillAppear:self];
}
[super viewWillAppear:animated];