mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-18 10:32:43 +00:00
Don't display the termination dialog for intended terminations
This commit is contained in:
parent
f8ba7cf190
commit
6a939e7495
@ -1322,8 +1322,15 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
LimeLog.severe("Connection terminated: " + errorCode);
|
LimeLog.severe("Connection terminated: " + errorCode);
|
||||||
stopConnection();
|
stopConnection();
|
||||||
|
|
||||||
Dialog.displayDialog(Game.this, getResources().getString(R.string.conn_terminated_title),
|
// Display the error dialog if it was an unexpected termination.
|
||||||
getResources().getString(R.string.conn_terminated_msg), true);
|
// Otherwise, just finish the activity immediately.
|
||||||
|
if (errorCode != 0) {
|
||||||
|
Dialog.displayDialog(Game.this, getResources().getString(R.string.conn_terminated_title),
|
||||||
|
getResources().getString(R.string.conn_terminated_msg), true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 433b2a036aa868b2d2847e880897fa13493443fc
|
Subproject commit 8190dffe99c33588b0ba280e3ed183d5a3853fc1
|
Loading…
x
Reference in New Issue
Block a user