commit | 5f4efd3b31e176e3febcd6435766e26bf61652c6 | [log] [tgz] |
---|---|---|
author | Willie Koomson <[email protected]> | Fri Mar 08 22:14:05 2024 +0000 |
committer | Willie Koomson <[email protected]> | Fri Mar 08 22:14:05 2024 +0000 |
tree | 7798ef49c4b20bc8e8ba18f855819b20b035bce8 | |
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