summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2013-11-13 22:31:01 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-11-13 22:31:01 +0000
commit711d390be96531c5dfadb9a17e373f1e92ef16a1 (patch)
treea158a50aef55658d655447cea38a84911e8bbb58
parent3714473f1a077cae6eca3079da67a7dd09dcff65 (diff)
parent3b945405cf96eae8b882f87934222a453718a559 (diff)
Merge "Small DocumentsProvider doc improvements." into klp-dev
-rw-r--r--core/java/android/provider/DocumentsProvider.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/provider/DocumentsProvider.java b/core/java/android/provider/DocumentsProvider.java
index cc81be5795f1..49816f8091b6 100644
--- a/core/java/android/provider/DocumentsProvider.java
+++ b/core/java/android/provider/DocumentsProvider.java
@@ -62,7 +62,8 @@ import java.io.FileNotFoundException;
* android:authorities="com.example.mycloudprovider"
* android:exported="true"
* android:grantUriPermissions="true"
- * android:permission="android.permission.MANAGE_DOCUMENTS"&gt;
+ * android:permission="android.permission.MANAGE_DOCUMENTS"
+ * android:enabled="@bool/isAtLeastKitKat"&gt;
* &lt;intent-filter&gt;
* &lt;action android:name="android.content.action.DOCUMENTS_PROVIDER" /&gt;
* &lt;/intent-filter&gt;
@@ -252,7 +253,8 @@ public abstract class DocumentsProvider extends ContentProvider {
* {@link DocumentsContract#EXTRA_LOADING} on the Cursor to indicate that
* you are still fetching additional data. Then, when the network data is
* available, you can send a change notification to trigger a requery and
- * return the complete contents.
+ * return the complete contents. To return a Cursor with extras, you need to
+ * extend and override {@link Cursor#getExtras()}.
* <p>
* To support change notifications, you must
* {@link Cursor#setNotificationUri(ContentResolver, Uri)} with a relevant
@@ -362,7 +364,7 @@ public abstract class DocumentsProvider extends ContentProvider {
* @param documentId the document to return.
* @param mode the mode to open with, such as 'r', 'w', or 'rw'.
* @param signal used by the caller to signal if the request should be
- * cancelled.
+ * cancelled. May be null.
* @see ParcelFileDescriptor#open(java.io.File, int, android.os.Handler,
* OnCloseListener)
* @see ParcelFileDescriptor#createReliablePipe()
@@ -386,7 +388,7 @@ public abstract class DocumentsProvider extends ContentProvider {
* @param documentId the document to return.
* @param sizeHint hint of the optimal thumbnail dimensions.
* @param signal used by the caller to signal if the request should be
- * cancelled.
+ * cancelled. May be null.
* @see Document#FLAG_SUPPORTS_THUMBNAIL
*/
@SuppressWarnings("unused")