瀏覽代碼

menu: don't show empty VC on the opposide side of the sidebar menu (refs #15127)

Felix Paul Kühne 9 年之前
父節點
當前提交
6bfbc4d651
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      Sources/VLCSidebarController.m
  2. 2 2
      VLC for iOS.xcodeproj/project.pbxproj

+ 2 - 2
Sources/VLCSidebarController.m

@@ -48,10 +48,10 @@
     if ([UIApplication sharedApplication].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionLeftToRight) {
         _sideMenuViewController = [[RESideMenu alloc] initWithContentViewController:nil
                                                              leftMenuViewController:_menuViewController
-                                                            rightMenuViewController:[UIViewController new]];
+                                                            rightMenuViewController:nil];
     } else {
         _sideMenuViewController = [[RESideMenu alloc] initWithContentViewController:nil
-                                                             leftMenuViewController:[UIViewController new]
+                                                             leftMenuViewController:nil
                                                             rightMenuViewController:_menuViewController];
     }
     _sideMenuViewController.backgroundImage = [UIImage imageNamed:@"menu-background"];

+ 2 - 2
VLC for iOS.xcodeproj/project.pbxproj

@@ -1851,7 +1851,7 @@
 				F2C5CAE560C074258A574B08 /* Copy Pods Resources */,
 				4173AEC21ABF1B860004101D /* Embed App Extensions */,
 				DD3567881B6760BF00338947 /* Embed Watch Content */,
-				1B073E97C4037EA19D77093D /* Embed Pods Frameworks */,
+				1C53C7C2A8D7B3028FC77EF3 /* Embed Pods Frameworks */,
 			);
 			buildRules = (
 			);
@@ -2131,7 +2131,7 @@
 			shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n    cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n    exit 1\nfi\n";
 			showEnvVarsInLog = 0;
 		};
-		1B073E97C4037EA19D77093D /* Embed Pods Frameworks */ = {
+		1C53C7C2A8D7B3028FC77EF3 /* Embed Pods Frameworks */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (