mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 00:25:10 -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:
parent
6d20c65778
commit
819692e025
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user