]> git.zerfleddert.de Git - FreeShisen/commitdiff
use andriod defaults for "ok" and "cancel"
authorgitknilch <gitknilch@cwde.de>
Sat, 9 Mar 2013 18:07:47 +0000 (19:07 +0100)
committergitknilch <gitknilch@cwde.de>
Sat, 9 Mar 2013 18:07:47 +0000 (19:07 +0100)
Change-Id: I00ccad95a4878cfe0994293c9b5d39b44172c262
Signed-off-by: gitknilch <gitknilch@cwde.de>
res/values/strings.xml
src/de/cwde/freeshisen/HighscoreActivity.java
src/de/cwde/freeshisen/ShisenShoActivity.java

index 0ffa59fb25d9af46c3ffea23a6ba4f84b6ead585..9510be02f3777fb5157728f6b83cd71379815f61 100644 (file)
@@ -36,7 +36,5 @@ Get the source code: https://code.google.com/p/freeshisen/</string>
     <string name="zerotime">00:00:00</string>
     <string name="clearhiscore_confirm_title">Really clear best times?</string>
     <string name="clearhiscore_confirm_text">This will clear all saved times. Hit &quot;OK&quot; if you really want to do this.</string>
     <string name="zerotime">00:00:00</string>
     <string name="clearhiscore_confirm_title">Really clear best times?</string>
     <string name="clearhiscore_confirm_text">This will clear all saved times. Hit &quot;OK&quot; if you really want to do this.</string>
-    <string name="ok">OK</string>
-    <string name="cancel">Cancel</string>
 
 </resources>
\ No newline at end of file
 
 </resources>
\ No newline at end of file
index 0af037228ae3375d8326335323623f2b7caf46e6..70d5f3dc6b1b704196a8fc9b4faa9dde3629b978 100644 (file)
@@ -42,7 +42,7 @@ public class HighscoreActivity extends Activity {
                builder.setMessage(R.string.clearhiscore_confirm_text);
                builder.setTitle(R.string.clearhiscore_confirm_title);
 
                builder.setMessage(R.string.clearhiscore_confirm_text);
                builder.setTitle(R.string.clearhiscore_confirm_title);
 
-               builder.setPositiveButton(R.string.ok,
+               builder.setPositiveButton(android.R.string.ok,
                                new DialogInterface.OnClickListener() {
                                        public void onClick(DialogInterface dialog, int id) {
                                                // User clicked OK button - delete hiscores
                                new DialogInterface.OnClickListener() {
                                        public void onClick(DialogInterface dialog, int id) {
                                                // User clicked OK button - delete hiscores
@@ -65,7 +65,7 @@ public class HighscoreActivity extends Activity {
                                                editor.commit();
                                        }
                                });
                                                editor.commit();
                                        }
                                });
-               builder.setNegativeButton(R.string.cancel,
+               builder.setNegativeButton(android.R.string.cancel,
                                new DialogInterface.OnClickListener() {
                                        public void onClick(DialogInterface dialog, int id) {
                                                // User cancelled the dialog - nothing to do
                                new DialogInterface.OnClickListener() {
                                        public void onClick(DialogInterface dialog, int id) {
                                                // User cancelled the dialog - nothing to do
index 88666da2697ddd567fb9f44b0ac51b370880daa0..376e054c58799d5465d79ee13aacfd75a2af53d9 100644 (file)
@@ -28,8 +28,6 @@ public class ShisenShoActivity extends Activity {
                PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
 
                requestWindowFeature(Window.FEATURE_NO_TITLE);
                PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
 
                requestWindowFeature(Window.FEATURE_NO_TITLE);
-               //getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
-               //              WindowManager.LayoutParams.FLAG_FULLSCREEN);
 
                view = ShisenSho.app().getView();
                ShisenSho.app().activity = this;
 
                view = ShisenSho.app().getView();
                ShisenSho.app().activity = this;
Impressum, Datenschutz