When getting a widget provider by name, check all categories

Some widgets have different categories for special cases for Pixel
widgets and because of that, some times we can't find the provider,
so we need to go through all of the categories.

Flag: NA
Test: Manaul testing =(
Test: All widgets in widget_section.xml with alsoKeepInApp set to false will previously dissapear on the preview.
Fix: 331628371
Change-Id: Iffbb788cbb27c79a215d06d21c9d623462d6f7e6
This commit is contained in:
Sebastian Franco committed 2024-04-15 19:21:21 -07:00
1 parent 2a6ce15290
commit 1f69351310
6 files changed
+40 -18

No files matched your search

@@ -48,6 +48,10 @@ public class PackageUserKey {
update(/* packageName= */ "", widgetCategory, user);
}
public PackageUserKey(String packageName, int widgetCategory, UserHandle user) {
update(packageName, widgetCategory, user);
}
public void update(String packageName, UserHandle user) {
update(packageName, NO_CATEGORY, user);
}