Moved about box strings to string resource file
This commit is contained in:
parent
cadc1489a5
commit
2cabeb69f3
|
@ -30,6 +30,9 @@
|
|||
<string name="select_controller_title">Select Controller</string>
|
||||
<string name="select_controller_message">Press any button on the controller to assign to port</string>
|
||||
<string name="controller_already_in_use">This controller is already in use!</string>
|
||||
|
||||
<string name="about_title">About reicast</string>
|
||||
<string name="about_text">reicast is a dreamcast emulator\n\nVersion:</string>
|
||||
|
||||
<string-array name="images">
|
||||
<item>cdi</item>
|
||||
|
|
|
@ -457,9 +457,9 @@ public class MainActivity extends FragmentActivity implements
|
|||
MainActivity.this);
|
||||
|
||||
// set title
|
||||
alertDialogBuilder.setTitle("About reicast");
|
||||
alertDialogBuilder.setTitle(getString(R.string.about_title));
|
||||
|
||||
String versionName = "unknown";
|
||||
String versionName = "";
|
||||
try {
|
||||
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
|
||||
versionName = pInfo.versionName;
|
||||
|
@ -469,7 +469,7 @@ public class MainActivity extends FragmentActivity implements
|
|||
|
||||
// set dialog message
|
||||
alertDialogBuilder
|
||||
.setMessage("reicast is a dreamcast emulator\n\nVersion: " + versionName)
|
||||
.setMessage(getString(R.string.about_text) + " " + versionName)
|
||||
.setCancelable(false)
|
||||
.setPositiveButton("Dismiss",
|
||||
new DialogInterface.OnClickListener() {
|
||||
|
|
Loading…
Reference in New Issue