This CL aims at fixing the wallpaper parser logic so static categories can be parsed properly from the XML file. This fix involves correctly using the category builder which was earlier being used incorrectly in case of null values of wallpaper. Bug: 358363322 Test: Tested by building & installing picker on local and checking if tiles are populated appropriately Flag: com.android.wallpaper.refactor_wallpaper_category_flag Change-Id: Id727f8b761adb39ce04b6330b5e55e941bff77ca
22 lines
829 B
XML
22 lines
829 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2024 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
|
|
<wallpapers>
|
|
<category id="category1" title="Category 1">
|
|
<invalid-tag id="wallpaper1" src="wallpaper1.jpg" />
|
|
</category>
|
|
</wallpapers> |