From 52d5e8f3fb71c5b6af10e3e1b95a2a2386ec6709 Mon Sep 17 00:00:00 2001 From: serso Date: Mon, 29 Feb 2016 20:59:20 +0100 Subject: [PATCH] Fix --- .../java/org/solovyev/android/calculator/StartupHelper.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/org/solovyev/android/calculator/StartupHelper.java b/app/src/main/java/org/solovyev/android/calculator/StartupHelper.java index b00e17de..6a7df705 100644 --- a/app/src/main/java/org/solovyev/android/calculator/StartupHelper.java +++ b/app/src/main/java/org/solovyev/android/calculator/StartupHelper.java @@ -43,7 +43,7 @@ public class StartupHelper { if (!App.isMonkeyRunner(activity)) { handleOnMainActivityOpened(activity, editor, opened == null ? 0 : opened); } - + UiPreferences.version.putPreference(editor, Android.getAppVersionCode(activity)); editor.apply(); } @@ -52,7 +52,6 @@ public class StartupHelper { final Wizards wizards = App.getWizards(); final Wizard wizard = wizards.getWizard(CalculatorWizards.FIRST_TIME_WIZARD); if (wizard.isStarted() && !wizard.isFinished()) { - UiPreferences.version.putPreference(editor, currentVersion); continueWizard(wizards, wizard.getName(), activity); return; } @@ -60,13 +59,11 @@ public class StartupHelper { if (!UiPreferences.version.isSet(preferences)) { // new start startWizard(wizards, activity); - UiPreferences.version.putPreference(editor, currentVersion); return; } final Integer savedVersion = UiPreferences.version.getPreference(uiPreferences); if (savedVersion < currentVersion) { - UiPreferences.version.putPreference(editor, currentVersion); if (Preferences.Gui.showReleaseNotes.getPreference(preferences) && hasReleaseNotes(activity, savedVersion + 1)) { final Bundle bundle = new Bundle(); bundle.putInt(CalculatorWizards.RELEASE_NOTES_VERSION, savedVersion);