mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +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.
|
// if the user drags all the way off the screen opposite the settings pane.
|
||||||
self.revealViewController.bounceBackOnOverdraw = NO;
|
self.revealViewController.bounceBackOnOverdraw = NO;
|
||||||
#else
|
#else
|
||||||
|
// Restore focus on the selected app on view controller pop navigation
|
||||||
|
self.restoresFocusAfterTransition = NO;
|
||||||
|
self.collectionView.remembersLastFocusedIndexPath = YES;
|
||||||
|
|
||||||
_menuRecognizer = [[UITapGestureRecognizer alloc] init];
|
_menuRecognizer = [[UITapGestureRecognizer alloc] init];
|
||||||
[_menuRecognizer addTarget:self action: @selector(showHostSelectionView)];
|
[_menuRecognizer addTarget:self action: @selector(showHostSelectionView)];
|
||||||
_menuRecognizer.allowedPressTypes = [[NSArray alloc] initWithObjects:[NSNumber numberWithLong:UIPressTypeMenu], nil];
|
_menuRecognizer.allowedPressTypes = [[NSArray alloc] initWithObjects:[NSNumber numberWithLong:UIPressTypeMenu], nil];
|
||||||
|
|||||||
Reference in New Issue
Block a user