Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc02b774 authored by Geoffrey Pitsch's avatar Geoffrey Pitsch
Browse files

New supported QuickViewConstant feature to delete a file.

Bug: 65368139
Test: compiles
Change-Id: I45e31f9ee063a9bd1330b3031bc770f7f0bf312e
parent 2e249679
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9966,6 +9966,7 @@ package android.content {
  }
  public class QuickViewConstants {
    field public static final java.lang.String FEATURE_DELETE = "android:delete";
    field public static final java.lang.String FEATURE_DOWNLOAD = "android:download";
    field public static final java.lang.String FEATURE_EDIT = "android:edit";
    field public static final java.lang.String FEATURE_PRINT = "android:print";
+3 −2
Original line number Diff line number Diff line
@@ -4905,8 +4905,9 @@ public class Intent implements Parcelable, Cloneable {
     * <li>Enumeration of features here is not meant to restrict capabilities of the quick viewer.
     * Quick viewer can implement features not listed below.
     * <li>Features included at this time are: {@link QuickViewConstants#FEATURE_VIEW},
     * {@link QuickViewConstants#FEATURE_EDIT}, {@link QuickViewConstants#FEATURE_DOWNLOAD},
     * {@link QuickViewConstants#FEATURE_SEND}, {@link QuickViewConstants#FEATURE_PRINT}.
     * {@link QuickViewConstants#FEATURE_EDIT}, {@link QuickViewConstants#FEATURE_DELETE},
     * {@link QuickViewConstants#FEATURE_DOWNLOAD}, {@link QuickViewConstants#FEATURE_SEND},
     * {@link QuickViewConstants#FEATURE_PRINT}.
     * <p>
     * Requirements:
     * <li>Quick viewer shouldn't show a feature if the feature is absent in
+10 −1
Original line number Diff line number Diff line
@@ -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
@@ -41,6 +41,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}.