Skip to content

Commit

Permalink
Fix homescreen control when modal windows active
Browse files Browse the repository at this point in the history
Allows us to escape modal windows on the home screen without dropping to atv homescreen.
  • Loading branch information
fuzzard authored and sy6sy2 committed Sep 24, 2019
1 parent e0760ad commit 2632831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/platform/darwin/tvos/XBMCController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldReceiveP
// a) if at our home view, should return to atv home screen.
// b) if not, let it pass to us.
if (CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow() == WINDOW_HOME &&
!CServiceBroker::GetGUI()->GetWindowManager().HasVisibleModalDialog() &&
!g_application.GetAppPlayer().IsPlaying())
handled = NO;
break;
Expand Down

0 comments on commit 2632831

Please sign in to comment.