diff --git a/reicast/android-studio/reicast/src/main/java/com/reicast/emulator/NativeGLActivity.java b/reicast/android-studio/reicast/src/main/java/com/reicast/emulator/NativeGLActivity.java index 403eee923e..0fd7900be6 100644 --- a/reicast/android-studio/reicast/src/main/java/com/reicast/emulator/NativeGLActivity.java +++ b/reicast/android-studio/reicast/src/main/java/com/reicast/emulator/NativeGLActivity.java @@ -88,15 +88,15 @@ public int Msgbox(final String text, final int type) { new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { - AlertDialog ab; AlertDialog.Builder builder = new AlertDialog.Builder(activity); String msg = text; - if ((type & 0x10) != 0) /* MBX_ICONERROR */ - msg += "\nPlease send a screenshot of this to the Reicast Team"; + if ((type & 0x10) != 0) { /* MBX_ICONERROR */ + msg += "\n" + R.string.msgbox_please_report; + } - builder.setMessage(msg).setPositiveButton("Okay", new DialogInterface.OnClickListener() { + builder.setMessage(msg).setPositiveButton(R.string.msgbox_okay, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { synchronized (ready) { ready.value = true; @@ -105,7 +105,6 @@ public void onClick(DialogInterface dialog, int id) { } }); builder.create().show(); - } }); diff --git a/reicast/android-studio/reicast/src/main/res/values/strings.xml b/reicast/android-studio/reicast/src/main/res/values/strings.xml new file mode 100644 index 0000000000..4dc7786fe4 --- /dev/null +++ b/reicast/android-studio/reicast/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + Please send a screenshot of this to the Reicast Team + Okay + \ No newline at end of file