Improve video decoder init failure message

This commit is contained in:
Cameron Gutman
2020-02-24 23:23:23 -08:00
parent a34a44f29a
commit 902a58bc70
2 changed files with 2 additions and 1 deletions

View File

@@ -1414,7 +1414,7 @@ public class Game extends Activity implements SurfaceHolder.Callback,
// If video initialization failed and the surface is still valid, display extra information for the user
if (stage.contains("video") && streamView.getHolder().getSurface().isValid()) {
Toast.makeText(Game.this, "Video decoder failed to initialize. Your device may not support the selected resolution.", Toast.LENGTH_LONG).show();
Toast.makeText(Game.this, getResources().getText(R.string.video_decoder_init_failed), Toast.LENGTH_LONG).show();
}
Dialog.displayDialog(Game.this, getResources().getString(R.string.conn_error_title),