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

Commit 225e0dac authored by Mady Mellor's avatar Mady Mellor
Browse files

Unhide HINT_HIDDEN from slices api and rename to HINT_SHORTCUT

Test: manual, build a slice with HINT_SHORTCUT, note content doesn't appear
      in slice template but can appear when displayed as shortcut
Bug: 68378574
Change-Id: I4f7d0b8dbbcb0da4efe79a709b0d9fbf24026a6e
parent 6088f10b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7030,6 +7030,7 @@ package android.app.slice {
    field public static final java.lang.String HINT_NO_TINT = "no_tint";
    field public static final java.lang.String HINT_PARTIAL = "partial";
    field public static final java.lang.String HINT_SELECTED = "selected";
    field public static final java.lang.String HINT_SHORTCUT = "shortcut";
    field public static final java.lang.String HINT_SUMMARY = "summary";
    field public static final java.lang.String HINT_TITLE = "title";
    field public static final java.lang.String SUBTYPE_COLOR = "color";
+4 −6
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ public final class Slice implements Parcelable {
            HINT_ACTIONS,
            HINT_SELECTED,
            HINT_NO_TINT,
            HINT_HIDDEN,
            HINT_SHORTCUT,
            HINT_TOGGLE,
            HINT_HORIZONTAL,
            HINT_PARTIAL,
@@ -118,12 +118,10 @@ public final class Slice implements Parcelable {
     */
    public static final String HINT_NO_TINT     = "no_tint";
    /**
     * Hint to indicate that this content should not be shown in larger renderings
     * of Slices. This content may be used to populate the shortcut/icon
     * format of the slice.
     * @hide
     * Hint to indicate that this content should only be displayed if the slice is presented
     * as a shortcut.
     */
    public static final String HINT_HIDDEN = "hidden";
    public static final String HINT_SHORTCUT = "shortcut";
    /**
     * Hint indicating this content should be shown instead of the normal content when the slice
     * is in small format.