]> git.zerfleddert.de Git - FreeShisen/blobdiff - src/de/cwde/freeshisen/ShisenShoActivity.java
remove some hardcoded strings
[FreeShisen] / src / de / cwde / freeshisen / ShisenShoActivity.java
index 311c7b126be34799e60a0b654d0ab875667fcd66..483c6f1f57b7c7b172c5407ad4c1762a9ec72669 100644 (file)
@@ -2,6 +2,7 @@ package de.cwde.freeshisen;
 
 import android.app.Activity;
 import android.app.AlertDialog;
+import android.content.DialogInterface;
 import android.content.Intent;
 import android.content.pm.PackageInfo;
 import android.content.pm.PackageManager;
@@ -120,4 +121,23 @@ public class ShisenShoActivity extends Activity {
                        e.printStackTrace();
                }
        }
+
+       public void onOptionsChanged()
+       {
+               new AlertDialog.Builder(this)
+               .setTitle(R.string.prefchange_confirm_title)
+               .setCancelable(true)
+               .setIcon(R.drawable.icon)
+               .setPositiveButton(android.R.string.yes,
+                               new DialogInterface.OnClickListener() {
+                       public void onClick(DialogInterface dialog, int id) {
+                               // User clicked OK button - reset game
+                               view.reset();
+                       }
+               })
+               .setNegativeButton(android.R.string.no, null)
+               .setMessage(R.string.prefchange_confirm_text)
+               .create()
+               .show();
+       }
 }
Impressum, Datenschutz