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

Commit 9015b6ac authored by Austin Wang's avatar Austin Wang
Browse files

Rename default wallpaper per device color config

Update based on comments in ag/23616437

Bug: 267504355
Test: flash and check default wallpaper
Change-Id: I640477fe9382be0b0f3d0df6fe6ae680d9431e54
parent 5a672421
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2928,7 +2928,7 @@ public class WallpaperManager {
    public static ComponentName getCmfDefaultWallpaperComponent(Context context) {
        ComponentName cn = null;
        String[] cmfWallpaperMap = context.getResources().getStringArray(
                com.android.internal.R.array.cmf_default_wallpaper_component);
                com.android.internal.R.array.default_wallpaper_component_per_device_color);
        if (cmfWallpaperMap == null || cmfWallpaperMap.length == 0) {
            Log.d(TAG, "No CMF wallpaper config");
            return getDefaultWallpaperComponent(context);
+5 −4
Original line number Diff line number Diff line
@@ -1861,13 +1861,14 @@
         specified -->
    <string name="default_wallpaper_component" translatable="false">@null</string>

    <!-- CMF colors to default wallpaper component map, the component with color matching the device
         color will be the cmf default wallpapers. The default wallpaper will be default wallpaper
         component if not specified.
    <!-- Default wallpaper component per device color map, each item is a comma separated key-value
         pair with key being a device color and value being the corresponding wallpaper component.
         The component with its key matching the device color will be the default wallpaper, the
         default wallpaper component will be the default if this config is not specified.

         E.g. for SLV color, and com.android.example/com.android.example.SlVDefaultWallpaper
         <item>SLV,com.android.example/com.android.example.SlVDefaultWallpaper</item> -->
    <string-array name="cmf_default_wallpaper_component" translatable="false">
    <string-array name="default_wallpaper_component_per_device_color" translatable="false">
        <!-- Add packages here -->
    </string-array>

+1 −1
Original line number Diff line number Diff line
@@ -2126,7 +2126,7 @@
  <java-symbol type="string" name="data_usage_rapid_body" />
  <java-symbol type="string" name="data_usage_rapid_app_body" />
  <java-symbol type="string" name="default_wallpaper_component" />
  <java-symbol type="array" name="cmf_default_wallpaper_component" />
  <java-symbol type="array" name="default_wallpaper_component_per_device_color" />
  <java-symbol type="string" name="device_storage_monitor_notification_channel" />
  <java-symbol type="string" name="dlg_ok" />
  <java-symbol type="string" name="dump_heap_notification" />