mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
[SettingsViewController] Avoid some crashes when reload rows animated.
This commit is contained in:
@@ -622,12 +622,15 @@ SignOutAlertPresenterDelegate>
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
[self.tableView beginUpdates];
|
||||
|
||||
// Refresh the corresponding table view cell with animation
|
||||
[self.tableView reloadRowsAtIndexPaths:@[
|
||||
[NSIndexPath indexPathForRow:userSettingsNewEmailIndex inSection:SETTINGS_SECTION_USER_SETTINGS_INDEX]
|
||||
]
|
||||
withRowAnimation:UITableViewRowAnimationFade];
|
||||
|
||||
[self.tableView endUpdates];
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -648,12 +651,15 @@ SignOutAlertPresenterDelegate>
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
[self.tableView beginUpdates];
|
||||
|
||||
// Refresh the corresponding table view cell with animation
|
||||
[self.tableView reloadRowsAtIndexPaths:@[
|
||||
[NSIndexPath indexPathForRow:userSettingsNewPhoneIndex inSection:SETTINGS_SECTION_USER_SETTINGS_INDEX]
|
||||
]
|
||||
withRowAnimation:UITableViewRowAnimationFade];
|
||||
|
||||
[self.tableView endUpdates];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user