From e7ccd9718cdb7ab483b07b062861a9a3222e7736 Mon Sep 17 00:00:00 2001 From: manuroe Date: Mon, 25 Feb 2019 16:00:47 +0100 Subject: [PATCH] Fix crash in Settings in 0.8.1 #2295 --- CHANGES.rst | 1 + Riot/Modules/Settings/SettingsViewController.m | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index f0ae4b3a3..57ac0bfcc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,7 @@ Improvements: Bug fix: * Reskin: status bar text is no more readable on iPad (#2276). * Reskin: Text in badges should be white in dark theme (#2283). + * Crash in Settings in 0.8.1 (#2295). Changes in 0.8.1 (2019-02-19) =============================================== diff --git a/Riot/Modules/Settings/SettingsViewController.m b/Riot/Modules/Settings/SettingsViewController.m index a955504a6..3ea8338fe 100644 --- a/Riot/Modules/Settings/SettingsViewController.m +++ b/Riot/Modules/Settings/SettingsViewController.m @@ -4256,8 +4256,10 @@ SignOutAlertPresenterDelegate> - (void)settingsKeyBackupTableViewSectionDidUpdate:(SettingsKeyBackupTableViewSection *)settingsKeyBackupTableViewSection { + [self.tableView beginUpdates]; [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:SETTINGS_SECTION_KEYBACKUP_INDEX] withRowAnimation:UITableViewRowAnimationAutomatic]; + [self.tableView endUpdates]; } - (MXKTableViewCellWithTextView *)settingsKeyBackupTableViewSection:(SettingsKeyBackupTableViewSection *)settingsKeyBackupTableViewSection textCellForRow:(NSInteger)textCellForRow