mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Don't display the termination dialog for intended terminations
This commit is contained in:
@@ -1322,9 +1322,16 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
LimeLog.severe("Connection terminated: " + errorCode);
|
LimeLog.severe("Connection terminated: " + errorCode);
|
||||||
stopConnection();
|
stopConnection();
|
||||||
|
|
||||||
|
// Display the error dialog if it was an unexpected termination.
|
||||||
|
// Otherwise, just finish the activity immediately.
|
||||||
|
if (errorCode != 0) {
|
||||||
Dialog.displayDialog(Game.this, getResources().getString(R.string.conn_terminated_title),
|
Dialog.displayDialog(Game.this, getResources().getString(R.string.conn_terminated_title),
|
||||||
getResources().getString(R.string.conn_terminated_msg), true);
|
getResources().getString(R.string.conn_terminated_msg), true);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
Submodule moonlight-common updated: 433b2a036a...8190dffe99
Reference in New Issue
Block a user