1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 05:02:26 -05:00

Merge branch 'GH-706_fix_delete_uri'

This commit is contained in:
cketti 2015-07-06 20:06:43 +02:00
commit 2f7afa8288

View File

@ -203,9 +203,14 @@ public class MessageProvider extends ContentProvider {
@Override
public String getField(final MessageInfoHolder source) {
final LocalMessage message = source.message;
return CONTENT_URI + "/delete_message/"
+ message.getAccount().getAccountNumber() + "/"
+ message.getFolder().getName() + "/" + message.getUid();
int accountNumber = message.getAccount().getAccountNumber();
return CONTENT_URI.buildUpon()
.appendPath("delete_message")
.appendPath(Integer.toString(accountNumber))
.appendPath(message.getFolder().getName())
.appendPath(message.getUid())
.build()
.toString();
}
}
public static class SenderExtractor implements FieldExtractor<MessageInfoHolder, CharSequence> {