Commit fc5b4065 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Do not hardcode strings

parent 1ad41196
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
<string name="track_samplerate_info">Sample rate: %1$d Hz\n</string> <string name="track_samplerate_info">Sample rate: %1$d Hz\n</string>
<string name="track_resolution_info">Resolution: %1$dx%2$d\n</string> <string name="track_resolution_info">Resolution: %1$dx%2$d\n</string>
<string name="track_framerate_info">Frame rate: %1$.3f\n</string> <string name="track_framerate_info">Frame rate: %1$.3f\n</string>
<string name="open">Open</string>
<string name="open_mrl">Open MRL</string> <string name="open_mrl">Open MRL</string>
<string name="open_mrl_dialog_title">Open network stream</string> <string name="open_mrl_dialog_title">Open network stream</string>
<string name="open_mrl_dialog_msg">Enter network MRL: e.g. http://, mms:// or rtsp://</string> <string name="open_mrl_dialog_msg">Enter network MRL: e.g. http://, mms:// or rtsp://</string>
......
...@@ -450,7 +450,7 @@ public class MainActivity extends SherlockFragmentActivity { ...@@ -450,7 +450,7 @@ public class MainActivity extends SherlockFragmentActivity {
b.setTitle(R.string.open_mrl_dialog_title); b.setTitle(R.string.open_mrl_dialog_title);
b.setMessage(R.string.open_mrl_dialog_msg); b.setMessage(R.string.open_mrl_dialog_msg);
b.setView(input); b.setView(input);
b.setPositiveButton("Open", new DialogInterface.OnClickListener() { b.setPositiveButton(R.string.open, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int button) { public void onClick(DialogInterface dialog, int button) {
ProgressDialog pd = ProgressDialog.show( ProgressDialog pd = ProgressDialog.show(
......
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