Commit b358eb1e authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Dropbox: fix incorrect toolbar style when view is displayed repeatedly

parent ab46df52
......@@ -68,7 +68,6 @@
_downloadingBarLabel = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DOWNLOADING",@"") style:UIBarButtonItemStylePlain target:nil action:nil];
[_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
[self _showProgressInToolbar:NO];
_activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
......@@ -86,6 +85,7 @@
- (void)viewWillAppear:(BOOL)animated
{
self.navigationController.toolbarHidden = NO;
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
[self updateViewAfterSessionChange];
[super viewWillAppear:animated];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment