]> git.zerfleddert.de Git - FreeShisen/commitdiff
Fix shit.
authorgitknilch <gitknilch@cwde.de>
Thu, 28 Feb 2013 10:50:42 +0000 (11:50 +0100)
committergitknilch <gitknilch@cwde.de>
Thu, 28 Feb 2013 10:50:42 +0000 (11:50 +0100)
Change-Id: I625949089712703d95a85d45068a3dbb4672c563
Signed-off-by: gitknilch <gitknilch@cwde.de>
AndroidManifest.xml
src/de/cwde/shisensho/ShisenSho.java

index d197126c2a0952722993b111701df1ceac2a4f64..6d49423a34a18060283e492728e6d3598e8955f2 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
       package="de.cwde.shisensho"
-      android:versionCode="1"
-      android:versionName="0.1">
+      android:versionCode="2"
+      android:versionName="0.2">
     <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="10"></uses-sdk>
 
 
index fc23d4795d1042602cac8336c13051aef3552c1c..0ca4ede97e39b5c4517954beb099749858ffa74b 100644 (file)
@@ -78,10 +78,11 @@ public class ShisenSho extends Application {
        public void setOptions() {
                SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
 
-               int size = sharedPref.getInt("size", 1);
-               int difficulty = sharedPref.getInt("difficulty", 1);
-               boolean gravity = sharedPref.getBoolean("gravity", true);
-               boolean timeCounter = sharedPref.getBoolean("timeCounter", true);
+               // FIXME: handle NumberFormatException here?
+               int size = Integer.parseInt(sharedPref.getString("pref_size", "1"));
+               int difficulty = Integer.parseInt(sharedPref.getString("pref_diff", "1"));
+               boolean gravity = sharedPref.getBoolean("pref_grav", true);
+               boolean timeCounter = sharedPref.getBoolean("pref_time", true);
 
                boolean needsReset = false;
 
Impressum, Datenschutz