]> git.zerfleddert.de Git - FreeShisen/blobdiff - src/de/cwde/freeshisen/ShisenShoView.java
remove some hardcoded strings
[FreeShisen] / src / de / cwde / freeshisen / ShisenShoView.java
index 3dc6ff007c91b7f6f7561fec3113b1e4c15d04dc..6a38ffc4201e061773333fa10e4909979b82f265 100644 (file)
@@ -257,7 +257,7 @@ class ShisenShoView extends SurfaceView implements SurfaceHolder.Callback {
                try {
                        if (canvas == null) canvas = surfaceHolder.lockCanvas(null);
                        if (canvas == null) return;
-                       if (cstate==StatePlay.UNINITIALIZED) initializeGame();
+                       if (cstate == StatePlay.UNINITIALIZED) initializeGame();
                        synchronized (surfaceHolder) {
                                doDraw(canvas);
                        }
@@ -549,11 +549,12 @@ class ShisenShoView extends SurfaceView implements SurfaceHolder.Callback {
                if (time.compareTo(besttime2) < 0) {
                        // score!
                        new AlertDialog.Builder(app.activity)
-                               .setTitle("Hiscore!")
+                               .setTitle(R.string.hiscore_title)
                                .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();
Impressum, Datenschutz