summaryrefslogtreecommitdiff
path: root/android/src/org/rockbox/RockboxKeyboardInput.java
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-11-06 01:40:24 +0000
committerThomas Martitz <kugel@rockbox.org>2010-11-06 01:40:24 +0000
commit739d76cfda5793256e849acd082d90f1e09c9494 (patch)
tree4fb4f027e296040fcd8e36722709f7762285c2d3 /android/src/org/rockbox/RockboxKeyboardInput.java
parent93640fc22847e70f0070061ed1effc5d063dd600 (diff)
Android: Use our translations for the yes/no/ok/cancel buttons in the yesno and keyboard dialog.
Second part of FS#11708. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28515 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/src/org/rockbox/RockboxKeyboardInput.java')
-rw-r--r--android/src/org/rockbox/RockboxKeyboardInput.java7
1 files changed, 3 insertions, 4 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)
{