Handle move-to-folder from UI
Change-Id: I2165b9f83459c0b8f8817108dc294c7882730df8
This commit is contained in:
parent
63d60d9eb1
commit
e2488c3f02
@ -2229,6 +2229,11 @@ outer:
|
||||
putIntegerLongOrBoolean(ourValues, MessageColumns.FLAG_READ, val);
|
||||
} else if (columnName.equals(MessageColumns.MAILBOX_KEY)) {
|
||||
putIntegerLongOrBoolean(ourValues, MessageColumns.MAILBOX_KEY, val);
|
||||
} else if (columnName.equals(UIProvider.ConversationColumns.FOLDER_LIST)) {
|
||||
// Convert from folder list uri to mailbox key
|
||||
Uri uri = Uri.parse((String)val);
|
||||
Long mailboxId = Long.parseLong(uri.getLastPathSegment());
|
||||
putIntegerLongOrBoolean(ourValues, MessageColumns.MAILBOX_KEY, mailboxId);
|
||||
} else {
|
||||
throw new IllegalArgumentException("Can't update " + columnName + " in message");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user