From 902a58bc70cb92618b659ceeba6c884e97c0aeb2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 24 Feb 2020 23:23:23 -0800 Subject: [PATCH] Improve video decoder init failure message --- app/src/main/java/com/limelight/Game.java | 2 +- app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index ec63df1a..f638f0db 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -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), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2eda9513..c959c461 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -60,6 +60,7 @@ Your device\'s video decoder continues to crash at your selected streaming settings. Your streaming settings have been reset to default. USB access is prohibited by your device administrator. Check your Knox or MDM settings. Your current launcher does not allow for creating pinned shortcuts. + Video decoder failed to initialize. Your device may not support the selected resolution or frame rate. Establishing Connection