Settings screen headers slide down over the already fully displayed screen

#636

Refresh all the table on account profile update (A slide down animation is observed when we limit the refresh to the concerned section).
This commit is contained in:
giomfo
2016-09-16 17:47:23 +02:00
parent 2fdbdc12bd
commit 6a67c095f6
@@ -518,13 +518,15 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
MXKAccount* account = [MXKAccountManager sharedManager].activeAccounts.firstObject;
[account load3PIDs:^{
NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(SETTINGS_SECTION_USER_SETTINGS_INDEX, 1)];
[self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
// Refresh all the table (A slide down animation is observed when we limit the refresh to the concerned section).
[self.tableView reloadData];
} failure:^(NSError *error) {
// Display the data that has been loaded last time
NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(SETTINGS_SECTION_USER_SETTINGS_INDEX, 1)];
[self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
}];
}