Version bump and upgrade message

pull/14/head
Sam Bosley 13 years ago
parent 80f4521a87
commit f23c0cdb22

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid" package="com.timsu.astrid"
android:versionName="4.1.2" android:versionName="4.1.3"
android:versionCode="267"> android:versionCode="268">
<!-- widgets, alarms, and services will break if Astrid is installed on SD card --> <!-- widgets, alarms, and services will break if Astrid is installed on SD card -->
<!-- android:installLocation="internalOnly"> --> <!-- android:installLocation="internalOnly"> -->

@ -41,6 +41,7 @@ import com.todoroo.astrid.utility.AstridPreferences;
public final class UpgradeService { public final class UpgradeService {
public static final int V4_1_3 = 268;
public static final int V4_1_2 = 267; public static final int V4_1_2 = 267;
public static final int V4_1_1 = 266; public static final int V4_1_1 = 266;
public static final int V4_1_0 = 265; public static final int V4_1_0 = 265;
@ -201,6 +202,17 @@ public final class UpgradeService {
Preferences.clear(AstridPreferences.P_UPGRADE_FROM); Preferences.clear(AstridPreferences.P_UPGRADE_FROM);
StringBuilder changeLog = new StringBuilder(); StringBuilder changeLog = new StringBuilder();
if (from >= V4_1_2 && from < V4_1_3) {
newVersionString(changeLog, "4.1.3 (5/17/12)", new String[] {
"Added an area where you can see what tasks you have shared with your friends! Enable or disable " +
"in Settings > Astrid Labs",
"Fixed a bug that caused certain shortcuts to show an empty list",
"Fixed a bug with adding tasks from the Power Pack widget",
"Fixed a Kindle Fire bug related to selecting photos",
"Various other minor bug and crash fixes"
});
}
if (from >= V4_1_1 && from < V4_1_2) { if (from >= V4_1_1 && from < V4_1_2) {
newVersionString(changeLog, "4.1.2 (5/05/12)", new String[] { newVersionString(changeLog, "4.1.2 (5/05/12)", new String[] {
"Fixed some crashes and minor bugs" "Fixed some crashes and minor bugs"
@ -405,7 +417,7 @@ public final class UpgradeService {
if(changeLog.length() == 0) if(changeLog.length() == 0)
return; return;
changeLog.append("Please enjoy!</body></html>"); changeLog.append("Have a spectacular day!</body></html>");
String color = ThemeService.getDialogTextColor(); String color = ThemeService.getDialogTextColor();
String changeLogHtml = "<html><body style='color: " + color +"'>" + changeLog; String changeLogHtml = "<html><body style='color: " + color +"'>" + changeLog;

Loading…
Cancel
Save