Fix for startup bug.

pull/14/head
Tim Su 16 years ago
parent b78e5aa309
commit 06a49752fb

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid"
android:versionCode="25"
android:versionName="1.9">
android:versionCode="26"
android:versionName="1.9.1">
<uses-permission android:name="android.permission.VIBRATE"/>

@ -136,7 +136,6 @@ public abstract class AbstractTaskModel extends AbstractModel {
}
@Override
@SuppressWarnings("fallthrough")
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.w(getClass().getSimpleName(), "Upgrading database from version " +
oldVersion + " to " + newVersion + ".");
@ -222,6 +221,10 @@ public abstract class AbstractTaskModel extends AbstractModel {
getCreationDate();
else if(field.equals(COMPLETION_DATE))
getCompletionDate();
else if(field.equals(NOTIFICATION_FLAGS))
getNotificationFlags();
else if(field.equals(LAST_NOTIFIED))
getLastNotificationDate();
}
}

Loading…
Cancel
Save