Skip to content
Snippets Groups Projects
Commit 5f4bc712 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Use specific strings for storage scan dialog

parent 68411b6b
No related branches found
No related tags found
No related merge requests found
......@@ -545,6 +545,8 @@
<string name="tv_settings_hint">Long press OK button to check/uncheck directories</string>
<string name="ml_external_storage_title">New external storage detected</string>
<string name="ml_external_storage_msg">Do you want VLC to add device %1$s to your medialibrary?</string>
<string name="ml_external_storage_accept">Yes</string>
<string name="ml_external_storage_decline">No</string>
<string name="last_added_media">last added</string>
<string name="no">No</string>
<string name="loading_medialibrary">Loading Medialibrary...</string>
......
......@@ -34,7 +34,7 @@ public class ExternalStorageDialog extends AppCompatDialogFragment {
final String message = String.format(VLCApplication.getAppResources().getString(R.string.ml_external_storage_msg), uuid);
builder.setTitle(R.string.ml_external_storage_title)
.setMessage(message)
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
.setPositiveButton(R.string.ml_external_storage_accept, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Intent serviceInent = new Intent(MediaParsingService.ACTION_DISCOVER_DEVICE, null, getActivity(), MediaParsingService.class)
.putExtra(MediaParsingService.EXTRA_PATH, path);
......@@ -44,7 +44,7 @@ public class ExternalStorageDialog extends AppCompatDialogFragment {
}
}
})
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
.setNegativeButton(R.string.ml_external_storage_decline, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext())
.edit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment