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

Open Network Stream: fix streaming opening with new menu

parent 75ca9304
......@@ -134,8 +134,6 @@
[self _presentViewController:self.settingsController.viewController];
}
- (void)updateHTTPServerAddress
{
HTTPServer *server = self.uploadController.httpServer;
......
......@@ -12,6 +12,7 @@
#import "VLCAppDelegate.h"
#import "VLCPlaylistViewController.h"
#import "UIBarButtonItem+Theme.h"
#import "UINavigationController+Theme.h"
@interface VLCOpenNetworkStreamViewController ()
{
......@@ -159,12 +160,14 @@
- (void)_openURLStringAndDismiss:(NSString *)url
{
VLCAppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
[appDelegate.playlistViewController openMovieFromURL:[NSURL URLWithString:url]];
[self dismissModalViewControllerAnimated:YES];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:appDelegate.playlistViewController];
[navController loadTheme];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[appDelegate.playlistViewController.addMediaPopoverController dismissPopoverAnimated:YES];
appDelegate.revealController.contentViewController = navController;
[appDelegate.revealController toggleSidebar:NO duration:kGHRevealSidebarDefaultAnimationDuration];
[appDelegate.playlistViewController performSelector:@selector(openMovieFromURL:) withObject:[NSURL URLWithString:url] afterDelay:kGHRevealSidebarDefaultAnimationDuration];
}
@end
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