mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-04 15:06:06 +00:00
more appletv tweaks (#351)
* redo now playing indicator - instead of drawing an arrow overlay, add an offset green shadow * do not show "Connection Terminated" on code 0 if an application quits successfully because it was asked to do so by the user (errorCode = 0), then do not display an alert -- just go back to the prior view. * fix: add missing toggle for mutli-controller support
This commit is contained in:
committed by
Cameron Gutman
parent
335b5aef1f
commit
b2c2f0837a
@@ -191,12 +191,15 @@
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// Allow the display to go to sleep now
|
||||
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
||||
|
||||
UIAlertController* conTermAlert = [UIAlertController alertControllerWithTitle:@"Connection Terminated" message:@"The connection was terminated" preferredStyle:UIAlertControllerStyleAlert];
|
||||
[conTermAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
||||
if (errorCode == 0) {
|
||||
[self returnToMainFrame];
|
||||
}]];
|
||||
[self presentViewController:conTermAlert animated:YES completion:nil];
|
||||
} else {
|
||||
UIAlertController* conTermAlert = [UIAlertController alertControllerWithTitle:@"Connection Terminated" message:@"The connection was terminated" preferredStyle:UIAlertControllerStyleAlert];
|
||||
[conTermAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
|
||||
[self returnToMainFrame];
|
||||
}]];
|
||||
[self presentViewController:conTermAlert animated:YES completion:nil];
|
||||
}
|
||||
});
|
||||
|
||||
[_streamMan stopStream];
|
||||
|
||||
Reference in New Issue
Block a user