From e402902d6e824bb1ca70b7bf748c4f7edfbab40e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 2 Nov 2020 20:39:37 -0600 Subject: [PATCH] Fix tvOS build --- Limelight/ViewControllers/StreamFrameViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Limelight/ViewControllers/StreamFrameViewController.m b/Limelight/ViewControllers/StreamFrameViewController.m index fba7837..699a07c 100644 --- a/Limelight/ViewControllers/StreamFrameViewController.m +++ b/Limelight/ViewControllers/StreamFrameViewController.m @@ -150,6 +150,7 @@ name: UIApplicationDidEnterBackgroundNotification object: nil]; +#if !TARGET_OS_TV [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(keyboardWillShow:) name: UIKeyboardWillShowNotification @@ -159,6 +160,7 @@ selector: @selector(keyboardWillHide:) name: UIKeyboardWillHideNotification object: nil]; +#endif // Only enable scroll and zoom in absolute touch mode if (_settings.absoluteTouchMode) { @@ -203,6 +205,7 @@ } } +#if !TARGET_OS_TV - (void)keyboardWillShow:(NSNotification *)notification { _keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; @@ -224,6 +227,7 @@ self->_scrollView.frame = frame; }]; } +#endif - (void)updateStatsOverlay { NSString* overlayText = [self->_streamMan getStatsOverlayText];