From bddc70bdb4888c89789abd0512ac000a50002d8e Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 16 Apr 2012 18:09:45 -0700 Subject: [PATCH] Version bump and upgrade message --- astrid/AndroidManifest.xml | 4 ++-- .../com/todoroo/astrid/service/UpgradeService.java | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index 6032c5171..5f2324ecc 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionName="4.1.0" + android:versionCode="265"> diff --git a/astrid/src/com/todoroo/astrid/service/UpgradeService.java b/astrid/src/com/todoroo/astrid/service/UpgradeService.java index e841439fd..363ab8ef5 100644 --- a/astrid/src/com/todoroo/astrid/service/UpgradeService.java +++ b/astrid/src/com/todoroo/astrid/service/UpgradeService.java @@ -41,6 +41,7 @@ import com.todoroo.astrid.utility.AstridPreferences; public final class UpgradeService { + public static final int V4_1_0 = 265; public static final int V4_0_6_2 = 264; public static final int V4_0_6_1 = 263; public static final int V4_0_6 = 262; @@ -193,12 +194,21 @@ public final class UpgradeService { if(!(context instanceof Activity) || from == 0) return; - boolean showTagCaseMigration = Preferences.getBoolean(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT, false); Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT); Preferences.clear(AstridPreferences.P_UPGRADE_FROM); StringBuilder changeLog = new StringBuilder(); + if (from < V4_1_0) { + newVersionString(changeLog, "4.1.0 (4/16/12)", new String[] { + "Swipe between lists! Swipe left and right to move through your lists", + "Assign tasks to friends by choosing from your phone contacts", + "Click on task titles in comments to edit those tasks", + "Astrid.com sync improvements", + "Other minor bugfixes", + }); + } + if (from >= V4_0_6 && from < V4_0_6_2) { newVersionString(changeLog, "4.0.6.2 (4/03/12)", new String[] { "Minor fix to backup migration fix to handle deleted tasks as well as completed tasks."