From 9054c57fa930d44c3b45a214d7ca1bf6601667b2 Mon Sep 17 00:00:00 2001 From: gitknilch Date: Thu, 28 Feb 2013 11:50:42 +0100 Subject: [PATCH] Fix shit. Change-Id: I625949089712703d95a85d45068a3dbb4672c563 Signed-off-by: gitknilch --- AndroidManifest.xml | 4 ++-- src/de/cwde/shisensho/ShisenSho.java | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) 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; -- 2.39.5