mobilejazz / coltrane

An android file picker
Apache License 2.0
25 stars 2 forks source link

Adding thumbnail support #6

Closed widmoser closed 9 years ago

widmoser commented 9 years ago

This PR adds a method to document providers:

public Uri getDocumentThumbnailUri(String documentId, Point sizeHint, CancellationSignal signal) ...

It allows to retrieve a uri pointing to a thumbnail of the document for the given size. Thumbnail support is natively provided by google drive. For the local file system provider, images and pdfs are supported.

The CancellationSignal parameter is currently ignored but might be added at a later point.