Fix for startup bug.

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

@ -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:versionCode="25" android:versionCode="26"
android:versionName="1.9"> android:versionName="1.9.1">
<uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.VIBRATE"/>

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

Loading…
Cancel
Save