1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

If we loaded a message from the local store without an associated folder, load up its folder.

This commit is contained in:
Jesse Vincent 2009-12-27 16:53:51 +00:00
parent da45b81866
commit 70f35a537e

View File

@ -2081,6 +2081,12 @@ public class LocalStore extends Store implements Serializable
this.mAttachmentCount = cursor.getInt(10);
this.setInternalDate(new Date(cursor.getLong(11)));
this.setMessageId(cursor.getString(12));
if (this.getFolder() == null)
{
LocalFolder f = new LocalFolder(cursor.getInt(13));
f.open(LocalFolder.OpenMode.READ_WRITE);
this.mFolder = f;
}
}