From: gitknilch Date: Thu, 28 Feb 2013 10:50:42 +0000 (+0100) Subject: Fix shit. X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/FreeShisen/commitdiff_plain/9054c57fa930d44c3b45a214d7ca1bf6601667b2?ds=sidebyside Fix shit. Change-Id: I625949089712703d95a85d45068a3dbb4672c563 Signed-off-by: gitknilch --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d197126..6d49423 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="2" + android:versionName="0.2"> diff --git a/src/de/cwde/shisensho/ShisenSho.java b/src/de/cwde/shisensho/ShisenSho.java index fc23d47..0ca4ede 100644 --- a/src/de/cwde/shisensho/ShisenSho.java +++ b/src/de/cwde/shisensho/ShisenSho.java @@ -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;