1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

refactor one of the versions of 'getAttachmentUri' in terms of one of

the others. less code == fewer chances to screw up
This commit is contained in:
Jesse Vincent 2010-07-19 01:54:09 +00:00
parent 6d20c65778
commit 819692e025

View File

@ -39,11 +39,7 @@ public class AttachmentProvider extends ContentProvider
public static Uri getAttachmentUri(Account account, long id)
{
return CONTENT_URI.buildUpon()
.appendPath(account.getUuid() + ".db")
.appendPath(Long.toString(id))
.appendPath(FORMAT_RAW)
.build();
return getAttachmentUri(account.getUuid() + ".db" , id);
}
public static Uri getAttachmentThumbnailUri(Account account, long id, int width, int height)