Commit c6b09cae authored by Carola Nitz's avatar Carola Nitz

VLCMovieViewController: fix UI not updating after switching between playbackviews

Since the delegate is being overwritten by the currently playing view it needs
to be set again every time the view reappears to receive updates.
parent a408a6ce
......@@ -142,8 +142,6 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
CGRect rect;
_vpc = [VLCPlaybackController sharedInstance];
_vpc.delegate = self;
[_vpc recoverPlaybackState];
self.extendedLayoutIncludesOpaqueBars = YES;
self.edgesForExtendedLayout = UIRectEdgeAll;
......@@ -395,6 +393,11 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
[super viewWillAppear:animated];
_vpc.delegate = self;
[_vpc recoverPlaybackState];
[self setupNavigationbar];
self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
[self setupNavigationbar];
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