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

Commit 2ceaf8d8 authored by Hai Zhang's avatar Hai Zhang
Browse files

Add visibility config for assistant, home and emergency role.

Default assistant, home and emergency could be hidden from users, so
keep this ability when we migrate to roles.

Bug: 124452117
Bug: 124260975
Test: manual
Change-Id: I8408c6eb56e39f2dc7b38e61d27418efcba9010a
parent 49df0095
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -216,6 +216,9 @@ package android {
  public static final class R.bool {
    field public static final int config_sendPackageName = 17891328; // 0x1110000
    field public static final int config_showDefaultAssistant = 17891329; // 0x1110001
    field public static final int config_showDefaultEmergency = 17891330; // 0x1110002
    field public static final int config_showDefaultHome = 17891331; // 0x1110003
  }
  public static final class R.color {
+6 −0
Original line number Diff line number Diff line
@@ -1948,12 +1948,18 @@

    <!-- The name of the package that will hold the assistant role by default. -->
    <string name="config_defaultAssistant" translatable="false" />
    <!-- Whether the default assistant settings should be shown. -->
    <bool name="config_showDefaultAssistant">true</bool>
    <!-- The name of the package that will hold the browser role by default. -->
    <string name="config_defaultBrowser" translatable="false">@string/default_browser</string>
    <!-- The name of the package that will hold the dialer role by default. -->
    <string name="config_defaultDialer" translatable="false">com.android.phone</string>
    <!-- The name of the package that will hold the SMS role by default. -->
    <string name="config_defaultSms" translatable="false">@string/default_sms_application</string>
    <!-- Whether the default emergency settings should be shown. -->
    <bool name="config_showDefaultEmergency">false</bool>
    <!-- Whether the default home settings should be shown. -->
    <bool name="config_showDefaultHome">true</bool>
    <!-- The name of the package that will hold the music role by default. -->
    <string name="config_defaultMusic" translatable="false">com.android.music</string>
    <!-- The name of the package that will hold the gallery role by default. -->
+6 −0
Original line number Diff line number Diff line
@@ -2992,6 +2992,12 @@
    <public-group type="bool" first-id="0x01110000">
        <!-- @hide @SystemApi -->
        <public name="config_sendPackageName" />
      <!-- @hide @SystemApi -->
      <public name="config_showDefaultAssistant" />
      <!-- @hide @SystemApi -->
      <public name="config_showDefaultEmergency" />
      <!-- @hide @SystemApi -->
      <public name="config_showDefaultHome" />
    </public-group>

    <public-group type="dimen" first-id="0x01050007">