Fix the getWidgetsByPackageItem method to return a copy
Bug: 356545910 Fix: 356545910 Test: Unit test Flag: EXEMPT BUGFIX Change-Id: I90429983733eb5f2bb2d6df00799d2445eaeea31
This commit is contained in:
1 parent
1a9ad91ec9
commit
74862f990b
2 files changed
+30
-1
No files matched your search
@@ -89,7 +89,7 @@ public class WidgetsModel {
|
||||
if (!WIDGETS_ENABLED) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
return mWidgetsByPackageItem;
|
||||
return new HashMap<>(mWidgetsByPackageItem);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user