diff options
| author | Geoffrey Pitsch <gpitsch@google.com> | 2017-12-06 11:24:15 -0500 |
|---|---|---|
| committer | Geoffrey Pitsch <gpitsch@google.com> | 2017-12-06 12:48:29 -0500 |
| commit | bc02b774632e0dfbe71ccb26535e04e485f611e6 (patch) | |
| tree | ef397886b673405afa9c20000f03308cb9b72599 /core/java/android/content/QuickViewConstants.java | |
| parent | 2e24967956fcedc2d25eb4069c89fa7629d4b35f (diff) | |
New supported QuickViewConstant feature to delete a file.
Bug: 65368139
Test: compiles
Change-Id: I45e31f9ee063a9bd1330b3031bc770f7f0bf312e
Diffstat (limited to 'core/java/android/content/QuickViewConstants.java')
| -rw-r--r-- | core/java/android/content/QuickViewConstants.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/java/android/content/QuickViewConstants.java b/core/java/android/content/QuickViewConstants.java index 7455d0cb0944..a25513de3d47 100644 --- a/core/java/android/content/QuickViewConstants.java +++ b/core/java/android/content/QuickViewConstants.java @@ -33,7 +33,7 @@ public class QuickViewConstants { public static final String FEATURE_VIEW = "android:view"; /** - * Feature to view a document using system standard editing mechanism, like + * Feature to edit a document using system standard editing mechanism, like * {@link Intent#ACTION_EDIT}. * * @see Intent#EXTRA_QUICK_VIEW_FEATURES @@ -42,6 +42,15 @@ public class QuickViewConstants { public static final String FEATURE_EDIT = "android:edit"; /** + * Feature to delete an individual document. Quick viewer implementations must use + * Storage Access Framework to both verify delete permission and to delete content. + * + * @see DocumentsContract#Document#FLAG_SUPPORTS_DELETE + * @see DocumentsContract#deleteDocument(ContentResolver resolver, Uri documentUri) + */ + public static final String FEATURE_DELETE = "android:delete"; + + /** * Feature to view a document using system standard sending mechanism, like * {@link Intent#ACTION_SEND}. * |
