From 4e5264d5e97f5506fc84a8aa85948369d5ed14c7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 24 Sep 2019 19:08:22 -0700 Subject: [PATCH] Fix menu button recognizer not always working after returning from settings --- Limelight/ViewControllers/MainFrameViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index bc9d33d5..d54aad49 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -248,7 +248,7 @@ static NSMutableSet* hostList; #if TARGET_OS_TV // Remove the menu button intercept to allow the app to exit // when at the host selection view. - [self.view removeGestureRecognizer:_menuRecognizer]; + [self.navigationController.view removeGestureRecognizer:_menuRecognizer]; #endif [_appManager stopRetrieving]; @@ -296,7 +296,7 @@ static NSMutableSet* hostList; #if TARGET_OS_TV // Intercept the menu key to go back to the host page - [self.view addGestureRecognizer:_menuRecognizer]; + [self.navigationController.view addGestureRecognizer:_menuRecognizer]; #endif // If we are online, paired, and have a cached app list, skip straight