RoomFilesViewController table view bottom inset reset bug fix

Signed-off-by: ismailgulek <gulekismail@gmail.com>
This commit is contained in:
ismailgulek
2020-04-21 16:51:16 +03:00
parent 3451b50d56
commit dfea4c4a62

View File

@@ -94,11 +94,6 @@
[self setNavBarButtons];
// Update the inputToolBar height (This will trigger a layout refresh)
[UIView setAnimationsEnabled:NO];
[self roomInputToolbarView:self.inputToolbarView heightDidChanged:0 completion:nil];
[UIView setAnimationsEnabled:YES];
// Observe user interface theme change.
kThemeServiceDidChangeThemeNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kThemeServiceDidChangeThemeNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
@@ -108,6 +103,16 @@
[self userInterfaceThemeDidChange];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
// Update the inputToolBar height (This will trigger a layout refresh)
[UIView setAnimationsEnabled:NO];
[self roomInputToolbarView:self.inputToolbarView heightDidChanged:0 completion:nil];
[UIView setAnimationsEnabled:YES];
}
- (void)userInterfaceThemeDidChange
{
[ThemeService.shared.theme applyStyleOnNavigationBar:self.navigationController.navigationBar];