diff options
| author | 2024-03-08 22:14:05 +0000 | |
|---|---|---|
| committer | 2024-03-08 22:14:05 +0000 | |
| commit | 5f4efd3b31e176e3febcd6435766e26bf61652c6 (patch) | |
| tree | 7798ef49c4b20bc8e8ba18f855819b20b035bce8 /libs/androidfw/StringPool.cpp | |
| parent | 0d5f65a7a539556741864ee05e07ab1b233088ce (diff) | |
Return null from getWidgetPreview instead of throwing error
If the provider is not found or the caller does not have permissions to
access the preview, return null from getWidgetPreview instead of
throwing IllegalArgumentException. This fixes certain launcher tests
that do not run with BIND_APPWIDGET permission.
Bug: 308041327
Test: Launcher3Tests:TaplOpenCloseAllAppsTest
Change-Id: Ie1617e2ef26ac3b4e7ec4a1dd0d3a3a71e50cd77
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions