mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
Restore focus on the correct app after closing the stream
This commit is contained in:
@@ -714,6 +714,10 @@ static NSMutableSet* hostList;
|
||||
// if the user drags all the way off the screen opposite the settings pane.
|
||||
self.revealViewController.bounceBackOnOverdraw = NO;
|
||||
#else
|
||||
// Restore focus on the selected app on view controller pop navigation
|
||||
self.restoresFocusAfterTransition = NO;
|
||||
self.collectionView.remembersLastFocusedIndexPath = YES;
|
||||
|
||||
_menuRecognizer = [[UITapGestureRecognizer alloc] init];
|
||||
[_menuRecognizer addTarget:self action: @selector(showHostSelectionView)];
|
||||
_menuRecognizer.allowedPressTypes = [[NSArray alloc] initWithObjects:[NSNumber numberWithLong:UIPressTypeMenu], nil];
|
||||
|
||||
Reference in New Issue
Block a user