Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Msgbox: Use resource strings
Browse files Browse the repository at this point in the history
  • Loading branch information
skmp committed Feb 1, 2020
1 parent b915f54 commit 3308aec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -105,7 +105,6 @@ public void onClick(DialogInterface dialog, int id) {
}
});
builder.create().show();

}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<string name="msgbox_please_report">Please send a screenshot of this to the Reicast Team</string>
<string name="msgbox_okay">Okay</string>
</resources>

0 comments on commit 3308aec

Please sign in to comment.