mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 06:01:13 +00:00
Fix tvOS build
This commit is contained in:
@@ -150,6 +150,7 @@
|
|||||||
name: UIApplicationDidEnterBackgroundNotification
|
name: UIApplicationDidEnterBackgroundNotification
|
||||||
object: nil];
|
object: nil];
|
||||||
|
|
||||||
|
#if !TARGET_OS_TV
|
||||||
[[NSNotificationCenter defaultCenter] addObserver: self
|
[[NSNotificationCenter defaultCenter] addObserver: self
|
||||||
selector: @selector(keyboardWillShow:)
|
selector: @selector(keyboardWillShow:)
|
||||||
name: UIKeyboardWillShowNotification
|
name: UIKeyboardWillShowNotification
|
||||||
@@ -159,6 +160,7 @@
|
|||||||
selector: @selector(keyboardWillHide:)
|
selector: @selector(keyboardWillHide:)
|
||||||
name: UIKeyboardWillHideNotification
|
name: UIKeyboardWillHideNotification
|
||||||
object: nil];
|
object: nil];
|
||||||
|
#endif
|
||||||
|
|
||||||
// Only enable scroll and zoom in absolute touch mode
|
// Only enable scroll and zoom in absolute touch mode
|
||||||
if (_settings.absoluteTouchMode) {
|
if (_settings.absoluteTouchMode) {
|
||||||
@@ -203,6 +205,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !TARGET_OS_TV
|
||||||
- (void)keyboardWillShow:(NSNotification *)notification {
|
- (void)keyboardWillShow:(NSNotification *)notification {
|
||||||
_keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
|
_keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
|
||||||
|
|
||||||
@@ -224,6 +227,7 @@
|
|||||||
self->_scrollView.frame = frame;
|
self->_scrollView.frame = frame;
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
- (void)updateStatsOverlay {
|
- (void)updateStatsOverlay {
|
||||||
NSString* overlayText = [self->_streamMan getStatsOverlayText];
|
NSString* overlayText = [self->_streamMan getStatsOverlayText];
|
||||||
|
|||||||
Reference in New Issue
Block a user