summaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/src/org/rockbox/RockboxKeyboardInput.java7
-rw-r--r--android/src/org/rockbox/RockboxYesno.java7
2 files changed, 6 insertions, 8 deletions
diff --git a/android/src/org/rockbox/RockboxKeyboardInput.java b/android/src/org/rockbox/RockboxKeyboardInput.java
index b7dd812f35..9cb5683a57 100644
--- a/android/src/org/rockbox/RockboxKeyboardInput.java
+++ b/android/src/org/rockbox/RockboxKeyboardInput.java
@@ -33,12 +33,11 @@ import android.widget.EditText;
public class RockboxKeyboardInput
{
- public void kbd_input(final String text)
+ public void kbd_input(final String text, final String ok, final String cancel)
{
final Activity c = RockboxService.get_instance().get_activity();
c.runOnUiThread(new Runnable() {
- @Override
public void run()
{
LayoutInflater inflater = LayoutInflater.from(c);
@@ -50,7 +49,7 @@ public class RockboxKeyboardInput
.setView(addView)
.setIcon(R.drawable.icon)
.setCancelable(false)
- .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener()
+ .setPositiveButton(ok, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton) {
EditText input = (EditText)((Dialog)dialog)
@@ -59,7 +58,7 @@ public class RockboxKeyboardInput
put_result(true, s.toString());
}
})
- .setNegativeButton(R.string.Cancel, new DialogInterface.OnClickListener()
+ .setNegativeButton(cancel, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton)
{
diff --git a/android/src/org/rockbox/RockboxYesno.java b/android/src/org/rockbox/RockboxYesno.java
index 9481d69d01..df8c54b7d9 100644
--- a/android/src/org/rockbox/RockboxYesno.java
+++ b/android/src/org/rockbox/RockboxYesno.java
@@ -28,12 +28,11 @@ import android.content.DialogInterface;
public class RockboxYesno
{
@SuppressWarnings("unused")
- private void yesno_display(final String text)
+ private void yesno_display(final String text, final String yes, final String no)
{
final Activity c = RockboxService.get_instance().get_activity();
c.runOnUiThread(new Runnable() {
- @Override
public void run()
{
new AlertDialog.Builder(c)
@@ -41,14 +40,14 @@ public class RockboxYesno
.setIcon(R.drawable.icon)
.setCancelable(false)
.setMessage(text)
- .setPositiveButton(R.string.Yes, new DialogInterface.OnClickListener()
+ .setPositiveButton(yes, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton)
{
put_result(true);
}
})
- .setNegativeButton(R.string.No, new DialogInterface.OnClickListener()
+ .setNegativeButton(no, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton)
{