summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/DocumentsProvider.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-08-27 14:46:32 -0700
committerJeff Sharkey <jsharkey@android.com>2014-08-27 15:13:57 -0700
commit5b836f29a3f56f9d13b6004417330c41ec0c18ae (patch)
treecc56edbc7a3d23f5891d0ebfd88dc1d694e8ae5f /core/java/android/provider/DocumentsProvider.java
parent3e97f9d48b6ef6b5ff5fa4e3c738138c0fe14edc (diff)
downloadframeworks_base-5b836f29a3f56f9d13b6004417330c41ec0c18ae.zip
frameworks_base-5b836f29a3f56f9d13b6004417330c41ec0c18ae.tar.gz
frameworks_base-5b836f29a3f56f9d13b6004417330c41ec0c18ae.tar.bz2
Define EXTRA_SIZE for ContentProviders.
Also make Size and SizeF parcelable. Bug: 17205016 Change-Id: Ide397b84864f6cad7f8d89e66b6c8697a3ad335b
Diffstat (limited to 'core/java/android/provider/DocumentsProvider.java')
-rw-r--r--core/java/android/provider/DocumentsProvider.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/java/android/provider/DocumentsProvider.java b/core/java/android/provider/DocumentsProvider.java
index 021fff4..270d786 100644
--- a/core/java/android/provider/DocumentsProvider.java
+++ b/core/java/android/provider/DocumentsProvider.java
@@ -16,7 +16,6 @@
package android.provider;
-import static android.provider.DocumentsContract.EXTRA_THUMBNAIL_SIZE;
import static android.provider.DocumentsContract.METHOD_CREATE_DOCUMENT;
import static android.provider.DocumentsContract.METHOD_DELETE_DOCUMENT;
import static android.provider.DocumentsContract.METHOD_RENAME_DOCUMENT;
@@ -763,8 +762,8 @@ public abstract class DocumentsProvider extends ContentProvider {
public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts)
throws FileNotFoundException {
enforceTree(uri);
- if (opts != null && opts.containsKey(EXTRA_THUMBNAIL_SIZE)) {
- final Point sizeHint = opts.getParcelable(EXTRA_THUMBNAIL_SIZE);
+ if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) {
+ final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE);
return openDocumentThumbnail(getDocumentId(uri), sizeHint, null);
} else {
return super.openTypedAssetFile(uri, mimeTypeFilter, opts);
@@ -781,8 +780,8 @@ public abstract class DocumentsProvider extends ContentProvider {
Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
throws FileNotFoundException {
enforceTree(uri);
- if (opts != null && opts.containsKey(EXTRA_THUMBNAIL_SIZE)) {
- final Point sizeHint = opts.getParcelable(EXTRA_THUMBNAIL_SIZE);
+ if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) {
+ final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE);
return openDocumentThumbnail(getDocumentId(uri), sizeHint, signal);
} else {
return super.openTypedAssetFile(uri, mimeTypeFilter, opts, signal);