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

Commit 6f5bb8ff authored by Ivan Chiang's avatar Ivan Chiang
Browse files

[PM] Change LauncherIconConfig (1/N)

- Add new two public attributes

Flag: android.content.pm.change_launcher_badging
Test: m
Bug: 374004639
Bug: 374005090
Change-Id: Iff22af1ed3b9e57821bda0ab27fc5d209ce21011
parent 289623c6
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -475,6 +475,8 @@ package android {
    field public static final int alpha = 16843551; // 0x101031f
    field public static final int alpha = 16843551; // 0x101031f
    field public static final int alphabeticModifiers = 16844110; // 0x101054e
    field public static final int alphabeticModifiers = 16844110; // 0x101054e
    field public static final int alphabeticShortcut = 16843235; // 0x10101e3
    field public static final int alphabeticShortcut = 16843235; // 0x10101e3
    field @FlaggedApi("android.content.pm.change_launcher_badging") public static final int alternateLauncherIcons;
    field @FlaggedApi("android.content.pm.change_launcher_badging") public static final int alternateLauncherLabels;
    field public static final int alwaysDrawnWithCache = 16842991; // 0x10100ef
    field public static final int alwaysDrawnWithCache = 16842991; // 0x10100ef
    field public static final int alwaysRetainTaskState = 16843267; // 0x1010203
    field public static final int alwaysRetainTaskState = 16843267; // 0x1010203
    field @Deprecated public static final int amPmBackgroundColor = 16843941; // 0x10104a5
    field @Deprecated public static final int amPmBackgroundColor = 16843941; // 0x10104a5
+16 −0
Original line number Original line Diff line number Diff line
@@ -2273,6 +2273,22 @@
        <attr name="enableOnBackInvokedCallback" format="boolean"/>
        <attr name="enableOnBackInvokedCallback" format="boolean"/>


        <attr name="intentMatchingFlags"/>
        <attr name="intentMatchingFlags"/>

        <!-- Specifies the set of drawable resources that can be used in place
             of an existing declared icon or banner for activities that appear
             in the app launcher. The resource referenced must be an array of
             drawable resources and can contain at most 500 items.
             {@link android.content.pm.PackageManager#changeLauncherIconConfig}
             @FlaggedApi(android.content.pm.Flags.FLAG_CHANGE_LAUNCHER_BADGING) -->
        <attr name="alternateLauncherIcons" format="reference" />

        <!-- Specifies the set of string resources that can be used in place
             of an existing declared label for activities that appear
             in the app launcher. The resource referenced must be an array of
             string resources and can contain at most 500 items.
             {@link android.content.pm.PackageManager#changeLauncherIconConfig}
             @FlaggedApi(android.content.pm.Flags.FLAG_CHANGE_LAUNCHER_BADGING) -->
        <attr name="alternateLauncherLabels" format="reference" />
    </declare-styleable>
    </declare-styleable>


    <!-- An attribution is a logical part of an app and is identified by a tag.
    <!-- An attribution is a logical part of an app and is identified by a tag.
+4 −0
Original line number Original line Diff line number Diff line
@@ -127,6 +127,10 @@
    <public name="intentMatchingFlags"/>
    <public name="intentMatchingFlags"/>
    <!-- @FlaggedApi(android.view.inputmethod.Flags.FLAG_IME_SWITCHER_REVAMP_API) -->
    <!-- @FlaggedApi(android.view.inputmethod.Flags.FLAG_IME_SWITCHER_REVAMP_API) -->
    <public name="layoutLabel"/>
    <public name="layoutLabel"/>
    <!-- @FlaggedApi(android.content.pm.Flags.FLAG_CHANGE_LAUNCHER_BADGING) -->
    <public name="alternateLauncherIcons"/>
    <!-- @FlaggedApi(android.content.pm.Flags.FLAG_CHANGE_LAUNCHER_BADGING) -->
    <public name="alternateLauncherLabels"/>
  </staging-public-group>
  </staging-public-group>


  <staging-public-group type="id" first-id="0x01b60000">
  <staging-public-group type="id" first-id="0x01b60000">