summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a8ebc47)
Change-Id: Ib77caf338d57d0d1763535b8f45567f768dc1c38
Signed-off-by: gitknilch <gitknilch@cwde.de>
<string name="invalidtime">9:99:99</string>
<string name="clearhiscore_confirm_title">Really clear best times?</string>
<string name="clearhiscore_confirm_text">This will clear all saved times. Hit "OK" if you really want to do this.</string>
<string name="invalidtime">9:99:99</string>
<string name="clearhiscore_confirm_title">Really clear best times?</string>
<string name="clearhiscore_confirm_text">This will clear all saved times. Hit "OK" if you really want to do this.</string>
+ <string name="prefchange_confirm_title">Preferences changed!</string>
+ <string name="prefchange_confirm_text">Changes in Preferences will only have an effect if a new game is started. Abort current game and start a new one?</string>
+ <string name="hiscore_title">Hiscore!</string>
+ <string name="hiscore_text">You\'ve made the highscore list!</string>
</resources>
\ No newline at end of file
</resources>
\ No newline at end of file
public void onOptionsChanged()
{
new AlertDialog.Builder(this)
public void onOptionsChanged()
{
new AlertDialog.Builder(this)
- .setTitle("Preferences changed!") // FIXME: hardcoded string
+ .setTitle(R.string.prefchange_confirm_title)
.setCancelable(true)
.setIcon(R.drawable.icon)
.setPositiveButton(android.R.string.yes,
.setCancelable(true)
.setIcon(R.drawable.icon)
.setPositiveButton(android.R.string.yes,
}
})
.setNegativeButton(android.R.string.no, null)
}
})
.setNegativeButton(android.R.string.no, null)
- .setMessage("Changes in Preferences will only have an effect if" +
- " a new game is started. Abort current game and start" +
- " a new one?") // FIXME: hardcoded string
- .create()
- .show();
+ .setMessage(R.string.prefchange_confirm_text)
+ .create()
+ .show();
if (time.compareTo(besttime2) < 0) {
// score!
new AlertDialog.Builder(app.activity)
if (time.compareTo(besttime2) < 0) {
// score!
new AlertDialog.Builder(app.activity)
+ .setTitle(R.string.hiscore_title)
.setCancelable(true)
.setIcon(R.drawable.icon)
.setCancelable(true)
.setIcon(R.drawable.icon)
- .setPositiveButton(app.getString(android.R.string.ok), null)
- .setMessage("You've made the highscore list!").create() // FIXME: hardcoded string
+ .setPositiveButton(android.R.string.ok, null)
+ .setMessage(R.string.hiscore_text)
+ .create()
.show();
SharedPreferences.Editor editor = sp.edit();
.show();
SharedPreferences.Editor editor = sp.edit();