Commit ac67de8e authored by Geoffrey Métais's avatar Geoffrey Métais

Fix chromecast warning dialog and extract string

parent 4f88c1d6
......@@ -378,6 +378,7 @@
<string name="casting_quality_medium">Medium</string>
<string name="casting_quality_low">Low</string>
<string name="casting_quality_lowcpu">Lowest</string>
<string name="cast_performance_warning">Casting this video requires conversion. This conversion can use all the available power and could quickly drain your battery.</string>
<string name="extensions_prefs_category">Extensions</string>
<string name="extensions_enable_category">Chose extensions to enable</string>
......
......@@ -33,6 +33,7 @@ import org.videolan.libvlc.Dialog;
import org.videolan.libvlc.util.AndroidUtil;
import org.videolan.medialibrary.Tools;
import org.videolan.medialibrary.media.MediaLibraryItem;
import org.videolan.vlc.R;
import org.videolan.vlc.VLCApplication;
import java.io.BufferedReader;
......@@ -195,7 +196,8 @@ public class Util {
dialog.dismiss();
return true;
} else if ("Performance warning".equals(dialog.getTitle())) {
Toast.makeText(VLCApplication.getAppContext(), dialog.getText(), Toast.LENGTH_LONG).show();
Toast.makeText(VLCApplication.getAppContext(), R.string.cast_performance_warning, Toast.LENGTH_LONG).show();
dialog.postAction(1);
dialog.dismiss();
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment